Properties
Readonly availableLocales
availableLocales: string[]
Readonly dateTimeFormats
fallbackLocale
formatFallbackMessages
formatFallbackMessages: boolean
formatter
getChoiceIndex
getChoiceIndex: ((choice: number, choicesLength: number) => number)
Type declaration
- (choice: number, choicesLength: number): number
Parameters
choice: number
choicesLength: number
Returns number
locale
locale: string
Readonly messages
missing
Readonly numberFormats
pluralizationRules
postTranslation
preserveDirectiveContent
preserveDirectiveContent: boolean
silentFallbackWarn
silentFallbackWarn: boolean | RegExp
silentTranslationWarn
silentTranslationWarn: boolean | RegExp
sync
sync: boolean
warnHtmlInMessage
Static availabilities
Static install
Static version
version: string
a choice index given by the input to $tc:
$tc('path.to.rule', choiceIndex)