BlogPlaygroundOne

useLocale API


Exposed
Ref<string, string>
ShallowRef<string>
Ref<string, string>
Ref<boolean, boolean>
Ref<LocaleMessages, LocaleMessages>
(value: number) => string
string
(key: string, params: unknown[]) => string

Current locale.

The decimal separator character for the current locale (e.g. . for en, , for de).

Fallback locale.

Indicates if RTL is currently active or not.

Locale messages.

Function to localize numbers.

Name of the locale adapter used.

Function to localize strings.