You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a product to the cart. Click the button "Toevoegen aan Winkelwagen" (Add to Cart in Dutch), after you click, you will see "Adding..." and "Added" And "Add to Cart".
The three last messages are not translated.
In the catalog-add-to-cart.js the following strings are defined:
addToCartButtonTextWhileAdding: $t('Adding...'),
addToCartButtonTextAdded: $t('Added'),
addToCartButtonTextDefault: $t('Add to Cart')
But for some reason the translated texts are not displayed in JavaScript. I notice more JavaScript strings which are not translated correctly
I 've added the following lines to my nl_NL.csv
Adding...,Toevoegen...,module,Magento_Catalog
Added,Toegevoegd,module,Magento_Catalog
"Add to Cart","Toevoegen aan Winkelwagen",module,Magento_Catalog
As a workaround for this specific instance until a fix is released, you can specify your options in the template that calls catalogAddToCart and rely on PHP translation instead of JS translation. For example in list.phtml:
I have the same problem. Also the texts in the checkout popover and the javascript texts of some external modules won't translate. This is in version 2.0.4.
I've noted that there is something not working with the translation of javascript strings.
I've set up a demo site: http://mage2-test.vanderboon.net
If you add a product to the cart. Click the button "Toevoegen aan Winkelwagen" (Add to Cart in Dutch), after you click, you will see "Adding..." and "Added" And "Add to Cart".
The three last messages are not translated.
In the catalog-add-to-cart.js the following strings are defined:
But for some reason the translated texts are not displayed in JavaScript. I notice more JavaScript strings which are not translated correctly
I 've added the following lines to my nl_NL.csv
Adding...,Toevoegen...,module,Magento_Catalog
Added,Toegevoegd,module,Magento_Catalog
"Add to Cart","Toevoegen aan Winkelwagen",module,Magento_Catalog
My language file is here: http://www.vanderboon.net/magento-translation/dutch.csv (> 95% complete)
The language file was installed the following way: http://www.vanderboon.net/wiki/Install_Test_Magento_2_Translation
The text was updated successfully, but these errors were encountered: