Extension of Vue I18n
$i18n on Vue instance.string | undefinedReturns locale code from stored locale cookie.
string)undefinedUpdates stored locale cookie with specified locale code. Consider using setLocale instead if you want to switch locale.
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.
string | undefinedReturns browser locale code filtered against the ones defined in options.
Promise<void>Switches to the pending locale that would have been set on navigate, but was prevented by the option skipSettingLocaleOnNavigate. See more information in Wait for page transition.
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.