ExamGecko
Question list
Search
Search

Question 141 - Certified B2B Commerce Developer discussion

Report
Export

A developer needs to implement a custom Lightning web component (LWC) for the storefront.

The LWC contains language-specific text values.

How should the developer translate the text values?

A.
Import static resources for the text values and add them into the LWC.
Answers
A.
Import static resources for the text values and add them into the LWC.
B.
Use a CustomLabel xml file in the LWC to add the text values there.
Answers
B.
Use a CustomLabel xml file in the LWC to add the text values there.
C.
Create custom labels for the text values and import them in the LWC.
Answers
C.
Create custom labels for the text values and import them in the LWC.
D.
Create a custom Metadata object for the text values and query it in the LWC. Answer: C
Answers
D.
Create a custom Metadata object for the text values and query it in the LWC. Answer: C
Suggested answer: C

Explanation:

Use Custom Labels in Lightning Web Components

Custom Labels

Internationalizing Your Lightning Web Component (LWC)

asked 23/09/2024
Hassan Shafi
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first