LocaleApi
Access the merchant’s current locale (in IETF format) to internationalize your extension content.
Name | Type | Description |
---|---|---|
initialValue | string |
IETF-formatted locale at time of page load |
setOnChange | (onChange: (locale: string) => void) => void |
Callback when user changes locale during runtime |