Skip to content

vue-i18n / general / TranslateOptions

Interface: TranslateOptions<Locales>

Vue I18n General

Translate Options

Remarks

Options for Translation API

Extends

  • LocaleOptions<Locales>

Type Parameters

Type ParameterDefault type
LocalesLocale

Properties

default?

ts
optional default: string | boolean;

Remarks

Default message when is occurred translation missing


escapeParameter?

ts
optional escapeParameter: boolean;

Remarks

Whether do escape parameter for list or named interpolation values


fallbackWarn?

ts
optional fallbackWarn: boolean;

Remarks

Whether do template interpolation on translation keys when your language lacks a translation for a key


list?

ts
optional list: unknown[];

Remarks

List interpolation


locale?

ts
optional locale: LocaleDetector<any[]> | Locales;

Remarks

The locale of localization

Inherited from

ts
LocaleOptions.locale

missingWarn?

ts
optional missingWarn: boolean;

Remarks

Whether suppress warnings outputted when localization fails


named?

ts
optional named: Record<string, unknown>;

Remarks

Named interpolation


plural?

ts
optional plural: number;

Remarks

Plulralzation choice number


resolvedMessage?

ts
optional resolvedMessage: boolean;

Remarks

Whether the message has been resolved

Released under the MIT License.