Questions tagged [js-translation]

The tag has no usage guidance.

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

Magento 2: Translation doesn't works in JS files. Can anyone help on this please?

define( [ "jquery", "Magento_Ui/js/modal/modal", "mage/calendar", "mage/translate", ], function($, modal){ // also ...
user avatar
0 votes
1 answer
43 views

Translation missing

This is my resulting html <div data-ui-id="checkout-cart-validationmessages-message-error"> The requested qty is not available </div> Probably generated by : <div data-...
user avatar
  • 772
0 votes
1 answer
262 views

translate "Please enter the same value again"

I am trying to change the validation message Please enter the same value again for password field using translate csv.but it's not translate on the frontend. Can any one please guide here what's wrong ...
user avatar
0 votes
1 answer
43 views

magento 2.3.3 konckout translation doesn't work

Hello I have the official stripe module for magento 2 which is not trasnlated correctly. This is the piece of code: <span><!-- ko i18n: 'Use a new card'--><!-- /ko --></span&...
user avatar
  • 455
1 vote
2 answers
873 views

Magento 2 knockout js translation is not working

I'm using Magento 2.3.4 I'm looking at the translation issue for the last few days but I didn't get any answer. I have used mageplaza one step checkout module. Very recently I have upgraded the ...
user avatar
  • 127
1 vote
1 answer
93 views

Magento 2: translate in js?

I'm having an issue with some translations in Magento 2 2.3.0. My store is in french, most of the text works fine. It seems that the problem occurs only with content that come from JS (AJAX and ...
user avatar
2 votes
0 answers
229 views

Dynamic content mage JS Translation

So first and foremost excuse me if this has been asked before, but there are so many questions regarding not working js translations that I didnt find any matching mine. I had an issue where I wanted ...
user avatar
  • 121
2 votes
1 answer
569 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/...
user avatar
0 votes
1 answer
581 views

How to translate message.text in magento 2

i want translate " The requested qty exceeds the maximum qty allowed in shopping cart ". I think it's in the template but when I find it, it's here app\design\frontend\Mgs\dukaken\Magento_Theme\...
user avatar
  • 895
0 votes
1 answer
60 views

Admin Menu doesn't slide out and configuration menue doesn't open. Also buttons not working

Preconditions (*) Magento 2.3.1 Ubuntu 18.04.2 LTS PHP 7.2.17 Working in dev environment and and enabled few optimization parameters which made admin panel inaccessible and buttons were don't appear ...
user avatar
  • 503
1 vote
0 answers
121 views

Magento 2.3. changing form validation options loses validation messages translations

I am running Magento 2.3. In the customer create account form I changed the way validation form errors are shown in this way: var dataForm = $('#form-validate'); dataForm.mage('validation', { ...
user avatar
  • 1,443
5 votes
3 answers
3k views

Magento 2 translate the "You added ... to your shopping cart." line

I'm trying to translate the "You added ... to your shopping cart." line in my Magento 2 installation. I have already a .csv file in: "app/design/themevendor/themename/i18n/" with all the lines ...
user avatar
  • 1,427
1 vote
0 answers
88 views

Magento 2: js-translation.json not generating in pub folder

On running setup: php bin/magento setup:static-content:deploy command, js-translation.json is not generating in "pub/static/frontend/theme_vendor/theme_name/en_US/--" Any idea why it is ...
user avatar
1 vote
1 answer
2k views

Magento2-Translation not working in js files

I was trying to make translation in JS files. I have tried 1 require([ 'jquery', 'jquery/ui', 'mage/translate' ], function($){ $(window).load(function() { alert($.mage.__('Your ...
user avatar
  • 293
1 vote
0 answers
27 views

Translating Error Messages on Address Form

When only entering a few Required Fields when logged in and Adding a new address. And then submitting that form, the error messages come back in English and not the translated format that is required....
user avatar
  • 81
0 votes
2 answers
510 views

Magento 2 minicart translation issue on some browser

I have Magento 2.2.5 website running successfully, but I am facing one serious issue on Minicart section and add to cart button. Everything get translated but on some browser like chrome and safari ...
user avatar
1 vote
1 answer
1k views

js-translation.json fails to generated

Magento 2.1 We have a site setup with both English and French languages. We were noticing some french translations weren't showing on checkout page. Upon further inspection js-translation.json was ...
user avatar
1 vote
1 answer
848 views

js-translation.json sample

I am having a translation issue where magento generates empty js-translation.json files only. This issue has been reported a number of times: Github: https://github.com/magento/magento2/issues/8508 ...
user avatar
  • 133
2 votes
1 answer
1k views

Magento 2 can't translate modal's title

I'm using a modal to show conditions for subscribing to a newsletter list. But I'm having trouble translating the title when initializing the modal inside a phtml file. The modal opens normally, but ...
user avatar
  • 2,707
1 vote
1 answer
177 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/...
user avatar
1 vote
2 answers
4k views

Magento 2 JS Translation Not Working

Is this a magento bug or is something I am doing it working I had created my translation file in my module i18n. For testing purpose I just modified few text. app/code/Vendor/Namespace/i18n/en_US....
user avatar
  • 7,342
3 votes
2 answers
6k views

Magento 2 Translate Checkout

I've been encountering an issue where I am unable to translate fields in Magento 2 checkout. Steps I have take: Created app/design/frontend/Company/theme/i18n/en_US.csv Added strings to update: "...
user avatar
  • 1,992
0 votes
1 answer
308 views

Translate Filter button layered nav sidebar Magento 1.9

could anyone tell me how can I translate the value "FILTER" for button price in layered navigation? I have a multilingual site all translated except that label, always appear in English as you can ...
user avatar
  • 41
0 votes
0 answers
59 views

Magento 2.0.15 js strings not translated (Adding... and Added)

On a product-detail page when you click on "Add to cart" it is not correctly translated. In english it says: "Adding..." and "Added". I found that the string is correctly translated in the correct ...
user avatar
4 votes
1 answer
5k views

Magento 2: Translate input placeholder attribute string in Knockout html template

I can translate strings in Knockout html templates like this: <!-- ko i18n: 'Email' --><!-- /ko --> <span data-bind="i18n: 'Email'"></span> And the translations come from pub/...
user avatar
0 votes
1 answer
3k views

Magento 2: Translate This is a required field

I'm already having a lot of trouble translating some Magento 2 texts, but I really can't seem figure this one out. I'm trying to translate the "This is a required field." text to Dutch. I already ...
user avatar
1 vote
1 answer
1k views

How to translate city/region dropdown on magento 2

The city/region drop-down list on checkout page is not translatable with .csv files I tried everything but it didn't work. Does anyone have an idea? Magento 2.1.2, Community edition.
user avatar
  • 193
2 votes
1 answer
1k views

How to escape a % in magento translation

Inside Mage_Core.csv have the following line "Please input a valid CSS-length. For example 100px or 77pt or 20em or .5ex or 50%." The problem is, Magento expect this % to be a parameter, and ...
user avatar
3 votes
5 answers
8k views

Javascript translation not working properly

I've translated some text in a javascript file with translation.js, I've done it the following way: I've defined the translator. define([ 'mage/translate', ]; After that, I translated my text. $....
user avatar
2 votes
2 answers
2k views

How to properly translate strings in JavaScript

Say I have a piece of custom JavaScript loaded in some pages of my store. This JavaScript serves the purpose of interactivity and can display some text. How would I make it multi-langual like I would ...
user avatar
  • 1,208
1 vote
3 answers
3k views

Magento 2 - Error Messaging Text Change

I'm trying to change a couple error messaging strings on the frontend in 2 places. First in the regular customer login. And also in the tooltip in the checkout login. I've tried editing ...
user avatar
  • 1,451
1 vote
2 answers
208 views

How I can translate store view labels?

I am trying to google it but I only get irrelevant results... How I can translate store view names in this language-switcher dropdown? I also tried "Translate Inline" but it doesnt give me more info. ...
user avatar
27 votes
2 answers
16k views

Magento2 translating Javascript (KO) template text

I am trying to add a translation for the text <!-- ko i18n: 'Store credit available' --><!-- /ko --> present in vendor/magento/module-customer-balance/view/frontend/web/template/payment/...
user avatar
1 vote
3 answers
6k views

Magento 2 : the JS messages do not translated!

I use magento 2.0 and I have a problem. The JS messages of fields control do not translated (like Please enter a valid email address (Ex: johndoe@domain.com). or Please enter 6 or more characters. ...
user avatar
16 votes
7 answers
41k views

How to translate JS error message or text in Magento 2?

I have two views English and Arabic default js validation error message needs to translate in Arabic so how to do it? And also I have a few custom texts on how to do it. I created an i18n for Arabic ...
user avatar