QuestionQ47

VerifiedLayout/UI

Which two actions does a developer need to take to translate strings added in JavaScript files?

Choose two
Explanation

Magento JavaScript translation support is loaded by declaring the mage/translate RequireJS dependency. Translatable phrases are then passed to Magento’s $.mage.__() translation helper, which looks up the localized phrase from the generated client-side translation dictionary.

Community Discussion

No comments yet. Be the first to start the discussion!