Questions tagged [js-translation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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 ...
1
vote
0answers
14 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 ...
1
vote
1answer
60 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/...
0
votes
1answer
92 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\...
0
votes
1answer
17 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 ...
0
votes
0answers
41 views

How to make words translatable in js file , Magento 1.9

I have a problem with translation in Magento 1.9. I want to translate the "Search:" word, but have no idea how. As you can see the "Search:" word isn't in the red frame. In project i found one place ...
1
vote
0answers
104 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', { ...
4
votes
1answer
779 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 ...
1
vote
0answers
61 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 ...
1
vote
1answer
530 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 ...
1
vote
0answers
24 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....
0
votes
2answers
308 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 ...
1
vote
1answer
337 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 ...
0
votes
1answer
338 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 ...
1
vote
1answer
651 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 ...
1
vote
1answer
78 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/...
0
votes
2answers
2k 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....
2
votes
2answers
4k 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: "...
0
votes
1answer
219 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 ...
0
votes
0answers
57 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 ...
3
votes
1answer
3k 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/...
0
votes
1answer
2k 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 ...
1
vote
1answer
587 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.
2
votes
1answer
814 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 ...
2
votes
5answers
3k 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. $....
0
votes
1answer
1k 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 ...
1
vote
3answers
2k 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 ...
1
vote
2answers
157 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. ...
24
votes
2answers
13k 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/...
1
vote
3answers
4k 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. ...
11
votes
7answers
27k views

How to translate js error message or text in Magento 2

I have two view English and Arabic default js validation error message needs to translate in Arabic so how to do it? and also I have few custom text how to do it I created a i18n for Arabic is ...