Skip to content

useLocale API

组件页面

可用属性

current
Current locale.
fallback
Fallback locale.
isRtl
Indicates if RTL is currently active or not.
messages
Locale messages.
n
Function to localize numbers.
name
Name of the locale adapter used.
t
Function to localize strings.