- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Translation on check-out page are lost after switching to Production mode
Our website has 2 storefronts: English + Thai.
We have translated all fields of the check out page using the Inline translation feature in the back end.
Every time I change to Developper mode to do some updates and switch back to Production mode afterwards, all these translations are lost and text reverts back to English.
Translations on other parts of the website have no problem (homepage, product page, etc.).
Any hint on where to investigate?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Translation on check-out page are lost after switching to Production mode
to deploy your store you must need to set your Thai code first then set english.
php bin/magento setup:upgrade; php bin/magento setup:static:content:deploy th_TH en_US
This will load all your Thai translation code first.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Translation on check-out page are lost after switching to Production mode
That doesn't work unfortunately. When I change back to production mode by using
bin/magento deploy:mode:set production |
it will auto-compile and I cannot add th-TH as parameter. I changed to DEV mode today and changed back to PROD and translations are lost again on the Check-out page. Any idea how to avoid this or does anyone know where the translations are stored so I could at least try to recover them?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Translation on check-out page are lost after switching to Production mode
Hello @js_dupuis
php bin/magento setup:static:content:deploy th_TH en_US
it is not working some time
so to deployment indvisual
php bin/magento setup:static:content:deploy th_TH
php bin/magento setup:static:content:deploy en_US
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer