Salesforce
PDII · Question #191
A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time. The application…
The correct answer is B. Use the $Locale value provider to retrieve the user preferences. See the full explanation below for the reasoning.
Question
A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time. The application must acknowledge and respect the user's locale context for dates, times, numbers, currency, and currency symbols. Which approach should the developer implement to ensure the Lightning application complies with the user's locale?
Options
- ACreate a Hierarchical custom setting to store user preferences
- BUse the $Locale value provider to retrieve the user preferences
- CUse the $User global variable to retrieve the user preferences
- DUse JavaScript in the component's controllers to format values
How the community answered
(28 responses)- A14% (4)
- B75% (21)
- C7% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.