Salesforce Fact #866 | Getting user language and locale using i18n

Besides using @salesforce/user module, We can get the UserLocale and Language using @salesforce/i18n scoped module as well in LWC.

Reference: https://developer.salesforce.com/docs/platform/lwc/guide/create-i18n.html

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow