Skip to main content

Questions tagged [i18n]

Denotes questions regarding i18n directory of a Magento module or theme

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
156 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 ...
Arno Vande Cappelle's user avatar
2 votes
1 answer
643 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') --> ...
Joao71's user avatar
  • 1,195
2 votes
0 answers
590 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, ...
gachowy's user avatar
  • 21
1 vote
0 answers
19 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: ...
Anonymous Record's user avatar
1 vote
0 answers
220 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 ...
Max's user avatar
  • 323
1 vote
1 answer
517 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 ...
Peter Horitzer's user avatar
1 vote
1 answer
285 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/...
Toni Procter's user avatar
0 votes
0 answers
24 views

How to translate Language switcher?

I can't seem to translate the language switcher component. in my csv it_IT i added this: "Language","Lingua",module,Magento_Store "English","EN",module,...
media.queeries's user avatar
0 votes
1 answer
285 views

How to get the locale of the order's store?

I have an order model. How can I get the locale from the store view where the order was created in? Edit On some tutorials I found something like /** @var \Magento\Sales\Model\Order $order */ $order-&...
stollr's user avatar
  • 127
0 votes
1 answer
74 views

Get order data in different language?

I'm trying to fetch the order and/or the product data, but translated to a specific language/store view from an observer. This will send out an internal email so the order will be handled. Im calling ...
vandijkstef's user avatar
0 votes
1 answer
418 views

Magento 2 : How to add Translate Code in JavaScript code in PHTML file?

I am trying to add translate code <?= __('This field is required') ?> in the Magento file using JavaScript but it is not working plz help me. if(response.length == 0) { document....
User0434's user avatar
  • 1,155
0 votes
1 answer
651 views

How to translate variable string in js file?

Let's say I have the following code: define([ 'jquery', 'mage/translate', ], function ( $, $t ) { 'use strict'; return function (str) { //Rest of codes to determine ...
PY Yick's user avatar
  • 2,705
0 votes
1 answer
260 views

Magento 2 change text from region to county

Magento 2 How to change the text from "region" to the "county" on the checkout Paypal page. Need change text from - Please check the shipping address information "region" ...
sumeet bajaj's user avatar
  • 1,316
0 votes
1 answer
377 views

Magento 2 Translation on Ajax Backend Not Working

I am making ajax request , and I call __('string to translate') function on backend. The problem is that translate is not working at all. My ajax controller is implementing HttpPostActionInterface ...
BlueScrinn's user avatar
0 votes
0 answers
344 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/...
AboElnouR's user avatar
  • 213
0 votes
1 answer
2k 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 ...
hippoglollum's user avatar
0 votes
0 answers
488 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 ...
omsta's user avatar
  • 698
0 votes
1 answer
42 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 ...
Crankycyclops's user avatar
0 votes
1 answer
57 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 ...
Emile's user avatar
  • 101
0 votes
1 answer
596 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 ...
Purushotam Sharma's user avatar