vue-i18n / general / TranslationProps
Interface: TranslationProps
Vue I18n Component
Translation Component Props
Extends
Properties
i18n?
optional i18n: Composer<{
}, {
}, {
}, string, never, string>;Remarks
A composer instance with an existing scope.
This option takes precedence over the scope option.
Inherited from
keypath
keypath: string;Remarks
The locale message key can be specified prop
locale?
optional locale: string;Remarks
Specifies the locale to be used for the component.
If specified, the global scope or the locale of the parent scope of the target component will not be overridden and the specified locale will be used.
Inherited from
plural?
optional plural: string | number;Remarks
The Plural Choosing the message number prop
scope?
optional scope: ComponentI18nScope;Remarks
Specifies the scope to be used in the target component.
You can specify either global or parent.
If global is specified, global scope is used, else then parent is specified, the scope of the parent of the target component is used.
If the parent is a global scope, the global scope is used, if it's a local scope, the local scope is used.
Inherited from
tag?
optional tag: string | object;Remarks
Used to wrap the content that is distribute in the slot. If omitted, the slot content is treated as Fragments.
You can specify a string-based tag name, such as p, or the object for which the component is defined.