Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [i18n]

Denotes questions regarding i18n directory of a Magento module or theme

4
votes
0answers
46 views

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
112 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
41 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
99 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. <...
0
votes
2answers
51 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
42 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
49 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 ...
0
votes
0answers
52 views

Change label when adding new address in checkout Step Magento 2

I have two type of customer so I have two form to add customer when I changed First name and Last Name in i18n it changed those two label in my first form. So how to change those two labels in just ...
0
votes
2answers
245 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
34 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
33 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
25 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
355 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
308 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
47 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 ...
0
votes
0answers
25 views

M2 - Translations not being compiled correctly

I am trying to translate a string which is rendered through javascript using the following: $.mage.__(item.label) It looks like the function is running correctly but the translations aren't being ...
1
vote
1answer
53 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
1k 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
3k 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","...
1
vote
1answer
200 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
317 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 ...