-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need information about translating issue (Magento Swatches Js) #16079
Comments
Hi, I looked carefully if it was all correct in my magento as you describe in the following interventions and it is! Except that it doesn't translate this thing troubles me, the More button I can't translate it in any way... in the file: /vendor/magento/module-swatches/view/frontend/web/js/swatch-renderer.js the config Swatches is correct like point 4 & 5 i try whit inline translation, not have option for translate, same not translate whit i18n ind I could kindly clarify and where am I wrong? |
@menphis89 |
Preconditions
Steps to reproduce
Expected result
**String can be translated through i18n string in dictonary.csv**
Actual result
**String is not translated**
I would like to have some information about this line :
magento2/app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
Line 503 in 38d7977
Indeed, I do not see any process to translate this string apart to pass a new value to options moreButtonText.
However, you pass the mage/translate to the define module, so a simple :
html += '<a href="#" class="' + moreClass + '">' + $t(moreText) + '</a>';
would be enough.
Could you provide me some information about this line, or we need to create a pull request about it.
Thank you,
Ilan PARMENTIER
The text was updated successfully, but these errors were encountered: