ExamGecko
Question list
Search
Search

Question 23 - AD0-E717 discussion

Report
Export

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) {.;
Answers
A.
define ([ 'jquery, 'mage/translate' ), function ($, $t) {.;
B.
$ trans( ,<string>')
Answers
B.
$ trans( ,<string>')
C.
$.mage._('<string>);
Answers
C.
$.mage._('<string>);
D.
translate('<string>');
Answers
D.
translate('<string>');
Suggested answer: A, C

Explanation:

To translate strings added in JS files, the developer needs to do the following:

Import themage/translatemodule.

Use thetranslate()function to translate the string.

asked 02/10/2024
Alajauan Adams
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first