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 [js-translation]

The tag has no usage guidance.

0
votes
1answer
6 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
25 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
63 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', { ...
3
votes
1answer
219 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
50 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
0answers
98 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
21 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
213 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
148 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
0answers
137 views

Validate form errors with custom locale messages

I found an extension to jQuery API which had locale phrases to translate error messages. I'm trying to translate that phrases to pt_PT. But I simply can't add code to my phtml such as: <script ...
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 ...
0
votes
1answer
186 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
452 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
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/...
0
votes
2answers
1k 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
3k 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
165 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
53 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 ...
1
vote
1answer
2k 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
412 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.
1
vote
1answer
654 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
4answers
2k 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
869 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
134 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
12k 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
2answers
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. ...
8
votes
7answers
22k 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 ...