Can anyone explain when the js-translation.json comes into picture in magento2?












3














I want to chnage 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 chekout page.



enter image description here










share|improve this question
























  • you have to translate JS error message? can you elaborate more what do you want to translate?
    – Chirag Patel
    2 days ago










  • @ChiragPatel please check image. i have added in myquestion
    – Rutvee Sojitra
    2 days ago
















3














I want to chnage 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 chekout page.



enter image description here










share|improve this question
























  • you have to translate JS error message? can you elaborate more what do you want to translate?
    – Chirag Patel
    2 days ago










  • @ChiragPatel please check image. i have added in myquestion
    – Rutvee Sojitra
    2 days ago














3












3








3


1





I want to chnage 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 chekout page.



enter image description here










share|improve this question















I want to chnage 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 chekout page.



enter image description here







magento2 checkout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked 2 days ago









Rutvee Sojitra

1,3671121




1,3671121












  • you have to translate JS error message? can you elaborate more what do you want to translate?
    – Chirag Patel
    2 days ago










  • @ChiragPatel please check image. i have added in myquestion
    – Rutvee Sojitra
    2 days ago


















  • you have to translate JS error message? can you elaborate more what do you want to translate?
    – Chirag Patel
    2 days ago










  • @ChiragPatel please check image. i have added in myquestion
    – Rutvee Sojitra
    2 days ago
















you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
2 days ago




you have to translate JS error message? can you elaborate more what do you want to translate?
– Chirag Patel
2 days ago












@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
2 days ago




@ChiragPatel please check image. i have added in myquestion
– Rutvee Sojitra
2 days ago










2 Answers
2






active

oldest

votes


















1














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!






share|improve this answer





























    1














    Those texts above using js translation which loaded to local storage "mage-translation-storage"



    enter image description here



    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;





    share|improve this answer























      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255706%2fcan-anyone-explain-when-the-js-translation-json-comes-into-picture-in-magento2%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









      1














      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!






      share|improve this answer


























        1














        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!






        share|improve this answer
























          1












          1








          1






          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!






          share|improve this answer












          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!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          Chirag Patel

          1,883220




          1,883220

























              1














              Those texts above using js translation which loaded to local storage "mage-translation-storage"



              enter image description here



              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;





              share|improve this answer




























                1














                Those texts above using js translation which loaded to local storage "mage-translation-storage"



                enter image description here



                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;





                share|improve this answer


























                  1












                  1








                  1






                  Those texts above using js translation which loaded to local storage "mage-translation-storage"



                  enter image description here



                  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;





                  share|improve this answer














                  Those texts above using js translation which loaded to local storage "mage-translation-storage"



                  enter image description here



                  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;






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 2 days ago

























                  answered 2 days ago









                  Tuyen Nguyen

                  1989




                  1989






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255706%2fcan-anyone-explain-when-the-js-translation-json-comes-into-picture-in-magento2%23new-answer', 'question_page');
                      }
                      );

                      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







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      Origin of the phrase “under your belt”?