@nuxtjs/i18n
. we will be deprecated in the future.Route
, default: current route)string
Returns base name of the passed route (uses the current route by default). The base name of a route is its name without a locale suffix or other metadata added by @nuxtjs/i18n
.
Locale
)string
Returns path of the current route for specified locale
.
See also Link localizing
string
| Location
)Locale
, default: current locale)string
Returns localized path for the passed route
. Uses the current locale
by default.
See also Link localizing
string
| Location
)Locale
, default: current locale)Route
| undefined
Returns localized route for the passed route
. Uses the current locale
by default.
See also Link localizing
localeHead
is renamed from $nuxtI18nHead
provided in @nuxtjs/i18n
v7.x.I18nHeadOptions
)I18nHeadMetaInfo
The options
object accepts these optional properties:
addDirAttribute
(type: boolean
) - Adds a dir
attribute to the HTML element. Default: false
addSeoAttributes
(type: boolean | SeoAttributesOptions
) - Adds various SEO attributes. Default: false
See also SEO