Magento 2: Can anyone explain when the js-translation.json comes into picture
Clash Royale CLAN TAG#URR8PPP
I want to change all the text on the checkout page. I have refer many documents.
But I want to understand flow that it will work.
Has anyone idea about it?
I want to do customization on checkout page.
magento2 checkout
add a comment |
I want to change all the text on the checkout page. I have refer many documents.
But I want to understand flow that it will work.
Has anyone idea about it?
I want to do customization on checkout page.
magento2 checkout
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48
add a comment |
I want to change all the text on the checkout page. I have refer many documents.
But I want to understand flow that it will work.
Has anyone idea about it?
I want to do customization on checkout page.
magento2 checkout
I want to change all the text on the checkout page. I have refer many documents.
But I want to understand flow that it will work.
Has anyone idea about it?
I want to do customization on checkout page.
magento2 checkout
magento2 checkout
edited Dec 29 '18 at 7:04
Kirti Nariya
1,010314
1,010314
asked Dec 25 '18 at 8:31
Rutvee Sojitra
1,4031121
1,4031121
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48
add a comment |
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48
add a comment |
2 Answers
2
active
oldest
votes
You can change text using i18 CSV translation method.
In your theme directory (For example)
magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv
Add the following like.
"Payment Method:", "Your text"
"Review & Payments", "Your text"
"Apply discount", "Your text"
Run the deploy command to get localization changes:
bin/magento setup:static-content:deploy
For more reference click here
I hope it helps!
add a comment |
Those texts above using js translation which loaded to local storage "mage-translation-storage"
Your text could be found and translated by those lines, you could add it to theme i18n csv or create a separated translation package from /app/i18n
"Payment Method:","Payment Method:",module,Magento_Checkout
"Review & Payments","Review & Payments",module,Magento_Checkout
"Apply Discount Code","Apply Discount Code",module,Magento_SalesRule
The main point of this which you think this should not work because your deployment script.
As mentioned here you have to separate the lines of deployment scrips
So instead of using:
php bin/magento setup:static-content:deploy en_US de_DE it_IT fr_FR es_ES
Use
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy de_DE
php bin/magento setup:static-content:deploy it_IT
php bin/magento setup:static-content:deploy fr_FR
php bin/magento setup:static-content:deploy es_ES
Here is my sample deployment script when I work with multiple languages project
php bin/magento setup:upgrade;
php bin/magento setup:static-content:deploy en_US -t Vendor/FrontTheme -t Vendor/AdminTheme;
php bin/magento setup:static-content:deploy de_DE -t Vendor/FrontTheme;
php bin/magento setup:static-content:deploy it_IT -t Vendor/FrontTheme;
php bin/magento cache:flush;
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255706%2fmagento-2-can-anyone-explain-when-the-js-translation-json-comes-into-picture%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can change text using i18 CSV translation method.
In your theme directory (For example)
magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv
Add the following like.
"Payment Method:", "Your text"
"Review & Payments", "Your text"
"Apply discount", "Your text"
Run the deploy command to get localization changes:
bin/magento setup:static-content:deploy
For more reference click here
I hope it helps!
add a comment |
You can change text using i18 CSV translation method.
In your theme directory (For example)
magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv
Add the following like.
"Payment Method:", "Your text"
"Review & Payments", "Your text"
"Apply discount", "Your text"
Run the deploy command to get localization changes:
bin/magento setup:static-content:deploy
For more reference click here
I hope it helps!
add a comment |
You can change text using i18 CSV translation method.
In your theme directory (For example)
magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv
Add the following like.
"Payment Method:", "Your text"
"Review & Payments", "Your text"
"Apply discount", "Your text"
Run the deploy command to get localization changes:
bin/magento setup:static-content:deploy
For more reference click here
I hope it helps!
You can change text using i18 CSV translation method.
In your theme directory (For example)
magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv
Add the following like.
"Payment Method:", "Your text"
"Review & Payments", "Your text"
"Apply discount", "Your text"
Run the deploy command to get localization changes:
bin/magento setup:static-content:deploy
For more reference click here
I hope it helps!
answered Dec 25 '18 at 9:18
Chirag Patel
1,973220
1,973220
add a comment |
add a comment |
Those texts above using js translation which loaded to local storage "mage-translation-storage"
Your text could be found and translated by those lines, you could add it to theme i18n csv or create a separated translation package from /app/i18n
"Payment Method:","Payment Method:",module,Magento_Checkout
"Review & Payments","Review & Payments",module,Magento_Checkout
"Apply Discount Code","Apply Discount Code",module,Magento_SalesRule
The main point of this which you think this should not work because your deployment script.
As mentioned here you have to separate the lines of deployment scrips
So instead of using:
php bin/magento setup:static-content:deploy en_US de_DE it_IT fr_FR es_ES
Use
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy de_DE
php bin/magento setup:static-content:deploy it_IT
php bin/magento setup:static-content:deploy fr_FR
php bin/magento setup:static-content:deploy es_ES
Here is my sample deployment script when I work with multiple languages project
php bin/magento setup:upgrade;
php bin/magento setup:static-content:deploy en_US -t Vendor/FrontTheme -t Vendor/AdminTheme;
php bin/magento setup:static-content:deploy de_DE -t Vendor/FrontTheme;
php bin/magento setup:static-content:deploy it_IT -t Vendor/FrontTheme;
php bin/magento cache:flush;
add a comment |
Those texts above using js translation which loaded to local storage "mage-translation-storage"
Your text could be found and translated by those lines, you could add it to theme i18n csv or create a separated translation package from /app/i18n
"Payment Method:","Payment Method:",module,Magento_Checkout
"Review & Payments","Review & Payments",module,Magento_Checkout
"Apply Discount Code","Apply Discount Code",module,Magento_SalesRule
The main point of this which you think this should not work because your deployment script.
As mentioned here you have to separate the lines of deployment scrips
So instead of using:
php bin/magento setup:static-content:deploy en_US de_DE it_IT fr_FR es_ES
Use
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy de_DE
php bin/magento setup:static-content:deploy it_IT
php bin/magento setup:static-content:deploy fr_FR
php bin/magento setup:static-content:deploy es_ES
Here is my sample deployment script when I work with multiple languages project
php bin/magento setup:upgrade;
php bin/magento setup:static-content:deploy en_US -t Vendor/FrontTheme -t Vendor/AdminTheme;
php bin/magento setup:static-content:deploy de_DE -t Vendor/FrontTheme;
php bin/magento setup:static-content:deploy it_IT -t Vendor/FrontTheme;
php bin/magento cache:flush;
add a comment |
Those texts above using js translation which loaded to local storage "mage-translation-storage"
Your text could be found and translated by those lines, you could add it to theme i18n csv or create a separated translation package from /app/i18n
"Payment Method:","Payment Method:",module,Magento_Checkout
"Review & Payments","Review & Payments",module,Magento_Checkout
"Apply Discount Code","Apply Discount Code",module,Magento_SalesRule
The main point of this which you think this should not work because your deployment script.
As mentioned here you have to separate the lines of deployment scrips
So instead of using:
php bin/magento setup:static-content:deploy en_US de_DE it_IT fr_FR es_ES
Use
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy de_DE
php bin/magento setup:static-content:deploy it_IT
php bin/magento setup:static-content:deploy fr_FR
php bin/magento setup:static-content:deploy es_ES
Here is my sample deployment script when I work with multiple languages project
php bin/magento setup:upgrade;
php bin/magento setup:static-content:deploy en_US -t Vendor/FrontTheme -t Vendor/AdminTheme;
php bin/magento setup:static-content:deploy de_DE -t Vendor/FrontTheme;
php bin/magento setup:static-content:deploy it_IT -t Vendor/FrontTheme;
php bin/magento cache:flush;
Those texts above using js translation which loaded to local storage "mage-translation-storage"
Your text could be found and translated by those lines, you could add it to theme i18n csv or create a separated translation package from /app/i18n
"Payment Method:","Payment Method:",module,Magento_Checkout
"Review & Payments","Review & Payments",module,Magento_Checkout
"Apply Discount Code","Apply Discount Code",module,Magento_SalesRule
The main point of this which you think this should not work because your deployment script.
As mentioned here you have to separate the lines of deployment scrips
So instead of using:
php bin/magento setup:static-content:deploy en_US de_DE it_IT fr_FR es_ES
Use
php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy de_DE
php bin/magento setup:static-content:deploy it_IT
php bin/magento setup:static-content:deploy fr_FR
php bin/magento setup:static-content:deploy es_ES
Here is my sample deployment script when I work with multiple languages project
php bin/magento setup:upgrade;
php bin/magento setup:static-content:deploy en_US -t Vendor/FrontTheme -t Vendor/AdminTheme;
php bin/magento setup:static-content:deploy de_DE -t Vendor/FrontTheme;
php bin/magento setup:static-content:deploy it_IT -t Vendor/FrontTheme;
php bin/magento cache:flush;
edited Dec 25 '18 at 9:59
answered Dec 25 '18 at 9:51
Tuyen Nguyen
1989
1989
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255706%2fmagento-2-can-anyone-explain-when-the-js-translation-json-comes-into-picture%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
Dec 25 '18 at 8:38
@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
Dec 25 '18 at 8:48