Questions tagged [js-translation]
The js-translation tag has no usage guidance.
36
questions
0
votes
1
answer
22
views
How to get translated data in customer section
I had a task to show the back order message in the mini cart. What I did is just take the message from the customer cart section and show it in the mini cart. Now the problem is with the translation. ...
0
votes
1
answer
191
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 ...
0
votes
1
answer
140
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-...
0
votes
1
answer
649
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 ...
0
votes
1
answer
62
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&...
2
votes
2
answers
2k
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 ...
1
vote
1
answer
180
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 ...
3
votes
0
answers
361
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 ...
2
votes
1
answer
901
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
1
answer
797
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
1
answer
101
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 ...
1
vote
0
answers
124
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', {
...
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 ...
1
vote
0
answers
107
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
1
answer
3k
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
0
answers
29
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
2
answers
615
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
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 ...
1
vote
1
answer
979
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
...
2
votes
1
answer
2k
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
1
answer
244
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
2
answers
5k
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....
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:
"...
0
votes
1
answer
317
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
0
answers
62
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 ...
4
votes
1
answer
6k
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
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 ...
1
vote
1
answer
2k
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.
3
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 ...
3
votes
5
answers
9k
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.
$....
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 ...
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 ...
1
vote
2
answers
223
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. ...
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/...
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: [email protected]). or Please enter 6 or more characters. ...
17
votes
7
answers
48k
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 ...