Optional
initial?: TLocaleInitial value for locale
If not set, it will default to calling getPreferredLocale()
,
which is based on the browser's language settings.
If persist
is true
, it will also check the value from localStorage
If the initial value is not supported, it will default to the default locale
Optional
persist?: booleanPersist the locale preference to localStorage
List of supported locale or languages. These can be full locale strings like "en-US" or just languages like "en"
The default locale if the user's preferred locale is not supported. This must be one of the items in
supported
.