Type Aliases
Choice
Choice: number
ComponentInstanceCreatedListener
CurrencyDisplay
CurrencyDisplay: "symbol" | "code" | "name"
DateTimeDigital
DateTimeDigital: "numeric" | "2-digit"
DateTimeFormatOptions
DateTimeFormatResult
DateTimeFormatResult: string
DateTimeHumanReadable
DateTimeHumanReadable: "long" | "short" | "narrow"
FallbackLocale
FallbackLocale: string | string[] | false | {}
FormatMatcher
FormatMatcher: "basic" | "best fit"
FormattedNumberPartType
FormattedNumberPartType: "currency" | "decimal" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign"
Locale
Locale: string
LocaleMatcher
LocaleMatcher: "lookup" | "best fit"
LocaleMessage
MessageFunction
MissingHandler
Missing
Handler
: ((locale
: Locale, key
: Path, vm
: Vue | null, values
: any) => string | void)Type declaration
- (locale: Locale, key: Path, vm: Vue | null, values: any): string | void
Parameters
vm: Vue | null
values: any
Returns string | void
Modifiers
Modifiers: {}
Type declaration
[key: string]: ((str: string) => string)
NumberFormatOptions
NumberFormatResult
NumberFormatResult: string
Path
Path: string
PluignOptions
PluignOptions: { bridge?: boolean }
Type declaration
Optional bridge?: boolean
PluralizationRulesMap
PluralizationRulesMap: {}
Type declaration
[lang: string]: ((choice: number, choicesLength: number) => number)
- (choice: number, choicesLength: number): number
Parameters
choice: number
choicesLength: number
Returns number
PostTranslationHandler
PostTranslationHandler: ((str: string, key?: string) => string)
Type declaration
- (str: string, key?: string): string
Parameters
str: string
Optional key: string
Returns string
TranslateResult
Values
Values: any[] | {}
WarnHtmlInMessageLevel
WarnHtmlInMessageLevel: "off" | "warn" | "error"
a choice index given by the input to $tc:
$tc('path.to.rule', choiceIndex)an overall amount of available choices
a final choice index