$i18n on Vue instance.getLocaleCookie()string | undefinedReturns locale code from stored locale cookie.
setLocaleCookie()string)undefinedUpdates stored locale cookie with specified locale code. Consider using setLocale instead if you want to switch locale.
setLocale()string)Promise<void>Switches locale of the app to specified locale code. If useCookie option is enabled, locale cookie will be updated with new value. If prefixes are enabled (strategy other than no_prefix), will navigate to new locale's route.
loadLocaleMessages()string)Promise<void>Loads the translation messages of the specified locale code, this is relevant for when using translations from a non-loaded locale.
getBrowserLocale()string | undefinedReturns browser locale code filtered against the ones defined in options.
finalizePendingLocaleChange()Promise<void>Switches locale to the pending locale, used when navigation locale switch is prevented by the skipSettingLocaleOnNavigate option. See Wait for page transition for more information.
waitForPendingLocaleChange()Promise<void>Returns a promise that will be resolved once the pending locale is set.
StrategiesRouting strategy as specified in options.
DirectionsDefault direction as specified in options.
stringDefault locale as specified in options.
Array<string>List of locale codes of registered locales.
Array<string | LocaleObject>List of locales as defined in options.
LocaleObjectObject of the current locale properties.
booleanWhether differentDomains option is enabled.