Which two actions will the developer need to take to translate strings added in JS files? (Choose two.)
Which two actions will the developer need to take to translate strings added in JS files? (Choose two.)
A . define ([
‘jquery,
‘mage/translate’
), function ($, $t) {.„»;
B. $ trans( ,<string>’)
C. $.mage._(‘<string>);
D. translate(‘<string>’);
Answer: A, C
Explanation:
To translate strings added in JS files, the developer needs to do the following:
Import the mage/translate module.
Use the translate() function to translate the string.
Latest AD0-E717 Practice Questions with 77 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments