QuestionQ47Verified/Layout/UICopy linkReport a problemAsk AstroTutorSave questionWhich two actions does a developer need to take to translate strings added in JavaScript files?Choose twoAB$.trans(‘<string>’)C$.mage._(‘<string>’);Dtranslate(‘<string>’);Show AnswerAnswerExplanationMagento 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion