getLocaleCookie()string | undefined从存储的 locale cookie 中返回区域代码。
setLocaleCookie()string)undefined使用指定的区域代码更新存储的 locale cookie。如果要切换区域,建议使用 setLocale。
setLocale()string)Promise<void>将应用的区域切换为指定的区域代码。如果启用了 useCookie 选项,locale cookie 将更新为新值。如果启用了前缀(策略不为 no_prefix),将导航至新区域的路由。
loadLocaleMessages()string)Promise<void>加载指定区域代码的翻译消息,适用于使用尚未加载的区域翻译时。
getBrowserLocale()string | undefined返回经过选项中定义的区域过滤的浏览器区域代码。
finalizePendingLocaleChange()Promise<void>切换至待定区域,用于当导航区域切换被 skipSettingLocaleOnNavigate 选项阻止时。详情见 等待页面过渡。
waitForPendingLocaleChange()Promise<void>返回一个 Promise,当待定区域设置完成后该 Promise 被解析。
Strategies选项中指定的路由策略。
Directions选项中指定的默认方向。
string选项中指定的默认区域。
Array<string>已注册区域的区域代码列表。
Array<string | LocaleObject>选项中定义的区域列表。
LocaleObject当前区域属性的对象。
boolean是否启用了 differentDomains 选项。