Questions tagged [i18n]

Denotes questions regarding i18n directory of a Magento module or theme

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Magento 2: How to translate knockout html file for word that contains hyperlink?

I have a text like this: To contact us please email us at joe@mail.com, will be waiting! when the user clicked on the email it will redirect the user to mail link, using phtml i can easily achieve it ...
0
votes
0answers
18 views

Translating Magento 2 Extension Using Theme Translation Files

I've installed Magefan Blog using the composer. So I can't add a new translation to the extension itself. I tried to add the translations to the theme i18n files on the path app/design/frontend/Vendor/...
1
vote
0answers
7 views

Need to translate Tax word in Swedish as Moms

I want to translate the word Tax in order summary I have tried adding translation in i18n But still no result here is the code: <tr class="totals-tax"> <th data-bind="text: ...
2
votes
1answer
31 views

Translating in html templates using i18n

I'm using i18n to translate some values in html static templates (default.html): So this does not work: <!-- ko if: (!Array.isArray(option.value) && option.option_type != 'file') --> ...
0
votes
0answers
15 views

Change translated strings from language file

first time I'm using Magento2 and I had to change the default language of frontend to Greek. I followed the guide from Mageplaza Installing via composer and after I deployed, it worked like a charm. ...
1
vote
1answer
70 views

How to translate text in shipping-estimation.html

I need to translate the text Enter your billing address to get a tax estimate. in vendor\magento\module-checkout\view\frontend\web\template\cart\shipping-estimation.html It is a text showing in the ...
1
vote
2answers
59 views

How to translate i18n value from tag in html?

I want to Translate a custom button name using i18n. I tried like this app/code/My_vendor/My_module/i18n/ar_SA.csv "I am the gift Receiver","أنا المتلقي هدية" The affect should take place in ...
2
votes
0answers
34 views

Magento 2 - translations on checkout

I've got a big issue with Magento 2.3.1, and translations on checkout, for store made in two langs - EN and PL. (PL set as default store) I've got a custom template, with elements that override Luma, ...
0
votes
0answers
232 views

Magento 2.3.3 - Programmatically shipment email sent in the wrong language

I am trying to programmatically create the shipment and I succeeded in this operation. To do this I create a new CLI Command which I obviously run by command line. I have only 1 storeview and the ...
1
vote
1answer
136 views

The “i18n:collect-phrases” command does not collect all translatable strings from JS

During module development I trying to collect all translations to the i18n/en_US.csv file using regular command: sudo -u www-data php bin/magento i18n:collect-phrases -o /var/www/html/app/code/Vendor/...
1
vote
1answer
119 views

How can I automatically collect new translations without overriding already translated strings?

As far as I understand, there are three steps to adding translations: collect phrases (bin/magento i18n:collect-phrases ...) to a CSV file that has two columns, e.g., "order","order" replace the ...
0
votes
0answers
15 views

Magento 2: Knockout Template display messy content during inline - translation

I am getting strange issue while enabling inline-translation. All knockout template display messy (All titles are in curly braces). Why is this happening? Please help and suggest. Thank you in ...
0
votes
0answers
88 views

Magento 2: theme translation does not work

Magento 2.2.9 I have a third party module (vendor/mirasvit/module-search-autocomplete). It comes with several translatable strings (i18n/en_US.csv). I want to translate the string Show all %1 ...
1
vote
3answers
404 views

How to change text “You have no items in your shopping cart.” in minicart in magento 2

How to change the text "You have no items in your shopping cart." in mini cart in Magento 2
0
votes
1answer
30 views

Magento 2.2.8 ignores my theme's dictionary

I'm hitting my head against a wall on this one. I've gone through not only the Magento documentation regarding custom translations in themes, but also many answered questions found via Google, and ...
1
vote
1answer
133 views

Translate Knockout Variables

I've been trying to get the shipping titles to translate with no success so far. It seems most questions deal with knockout text but I'm trying to do it on a variable that doesn't seem to be working. ...
4
votes
0answers
64 views

Magento2 : Get translation for multiple languages

I have a Magento 2 with a multiple website/store/storeview setup. Now I want to create a list of links with the text "Continue on [store_name] store". The problem is that I want to translate it in the ...
2
votes
2answers
1k views

Translation file magento 2 i18n

I'm trying to change "Excl. Tax:" to "Excl. Vat:" and have created a CSV file called en_GB.csv which contains the line - "Tax:", "Vat:". I've saved and uploaded this to app/design/frontend/Magento/...
1
vote
1answer
80 views

Translation csv file in magento theme directory

-v 2.3 theme - luma locale - UK I need to change 'excl tax' to 'excl vat' on my catalog/cart pages and believe I need to create a CSV file with the translation contained this file. My question is ...
5
votes
1answer
675 views

Magento 2 : How to concat a string variable to option value in knockout template which already bind to i18n string?

I've knockout template which contains the following line: <option value='industrial' data-bind="i18n: 'Industrial'"></option> anyone knows how to add variable to 'Industrial' eg. <...
2
votes
3answers
2k views

Magento 2.3 translations (translate label) in the admin panel (backend)

In Magento 1 I just added a translate.csv for my admin area. How can I achieve this in Magento 2? I just want to change the translations of a few things and add some missing translations. Can't I put ...
1
vote
1answer
52 views

Translation of a module

How can I translate an extension (module) ? I tried to create the i18n folder and create the it_IT.csv file. But it does not work, how can I do translation?
1
vote
0answers
83 views

English to english translation problem magento2

I am translating the text("You canceled the coupon code.") with "Thank you for canceling the coupon code" (This is just english to english translation) from Magento\Checkout\Controller\Cart\CouponPost ...
2
votes
3answers
928 views

Change 'Sort by Position' text to 'Sort by New' Magento 2.2.6

This must/should be easily achieved...I am simply hoping to change the 'Sort By Position' text to 'Sort by New' in the Magento category list toolbar. I have attempted to do this by creating the ...
0
votes
1answer
186 views

Magento 2: Some texts are not translated

Magento 2.2.6: Some texts are not translated, like Proceed to checkout, Company, Continue Shopping etc. I am using below string:- "Proceed to Checkout","ادفع الآن",module,Magento_Checkout "Proceed ...
0
votes
1answer
216 views

Magento2: Translate knockout variable with odd beahaivor

I want to translate a variable in Knockout <span id="sales_unit" data-bind="i18n:sales_unit"></span> sales_unit has the value pair. The value should be translated to a different language ...
0
votes
1answer
29 views

translation csv not visible

I made a CSV. Name: 'nl_NL.csv' Content: You added %1 to your shopping cart.,U heeft %1 aan uw winkelwagen toegevoegd. That as what I want to Translate in Dutch as it is not in the standard ...
2
votes
1answer
1k views

Magento 2: get current store view in JS

I need to get current store view code in JS component to compose i18n-compatible route to the REST API operation: define( ["jquery", "ko", "uiComponent", "mage/translate"], function ($, ko, ...
1
vote
1answer
546 views

Magento 2 - Error in line 196 Dictionary.php - Undefined offset

Sometimes after creating a dictionary, I get this error: Undefined offset: 1 in /vendor/magento/framework/App/Language/Dictionary.php a:4:{i:0;s:104:"Notice: Undefined offset: 1 in /srv/www/...
2
votes
2answers
57 views

Page home magento 2

I installed a template and put all the necessary translations in the i18n file but still can't see the translation. My question is: Do I have to create 3 home pages and then choose the store-view for ...
1
vote
1answer
105 views

Inconsistent translations populated in the js-translation.json

Can anyone please shed some light on the js-translation.json and where it pulls the phrases in from? We have a Spanish store view and we have 934 phrases translated in our app/i18n/vendor/es_es/...
2
votes
3answers
2k views

Add Language translation text in magento2

I have added the new field in Customer navigation section near the Sign In, For that new field I need to fr_FR translation where I need to add the translation text? Those translation files are working ...
0
votes
2answers
6k views

How to translate module with i18n

I met a problem that how to translate the module's phrase into other languages(eg. Japanese). For example, some code may like this: app/code/My_vendor/My_module/Controller/i18n/jp_JP.csv "test","...
3
votes
1answer
4k views

Magento2: List translation strings from a module

In order to build this CSV app/code/Vendor/Module/i18n/en_US.csv, I want to get an array from my module with all the translation-ready strings from all files types (.php, .phtml, .js, .xml). .php &...
1
vote
1answer
329 views

Magento 2 - How to Overwrite Default Translation Core en_US Dictionary Package

I want to change the word "Magento" to "Magento 2 CE" for the Default Translation Core en_US Dictionary Package. How to achieve this without overwrite Magento's core functionality directly at vendor/...
1
vote
1answer
496 views

Magento2 phrases in some specific modules are not translated

I have installed arabic lang pack. But phrases from Magento_Checkout module are not being translated. these are the i18n files in my installation: ./app/i18n/Burooj/ar_SA/ar_SA.csv ./app/code/Burooj/...
3
votes
2answers
2k views

Magento 2 - extend core module translation i18n for a very specific area [duplicate]

Magento 2 translation problem (my locale is set to en_US): I want to change the "Email" label on the Contact Us page to "Email Address:". However, I DO NOT WANT the "Email" label changed anywhere ...