PluralRules
t
RESCRIPT
type tlocaleType
RESCRIPT
type localeType = [#cardinal | #ordinal]options
RESCRIPT
type options = {
localeMatcher?: Core__Intl__Common.localeMatcher,
\"type"?: localeType,
minimumIntegerDigits?: Core__Intl__Common.oneTo21,
minimumFractionDigits?: Core__Intl__Common.zeroTo20,
maximumFractionDigits?: Core__Intl__Common.zeroTo20,
minimumSignificantDigits?: Core__Intl__Common.oneTo21,
maximumSignificantDigits?: Core__Intl__Common.oneTo21,
}pluralCategories
RESCRIPT
type pluralCategories = [
| #few
| #many
| #one
| #other
| #two
| #zero
]resolvedOptions
RESCRIPT
type resolvedOptions = {
locale: string,
pluralCategories: array<pluralCategories>,
\"type": localeType,
minimumIntegerDigits?: Core__Intl__Common.oneTo21,
minimumFractionDigits?: Core__Intl__Common.zeroTo20,
maximumFractionDigits?: Core__Intl__Common.zeroTo20,
minimumSignificantDigits?: Core__Intl__Common.oneTo21,
maximumSignificantDigits?: Core__Intl__Common.oneTo21,
}supportedLocalesOptions
RESCRIPT
type supportedLocalesOptions = {
localeMatcher: Core__Intl__Common.localeMatcher,
}make
RESCRIPT
let make: (~locales: array<string>=?, ~options: options=?) => tsupportedLocalesOf
RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => tresolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptionsrule
RESCRIPT
type rule = [#few | #many | #one | #other | #two | #zero]select
RESCRIPT
let select: (t, float) => ruleselectInt
RESCRIPT
let selectInt: (t, int) => ruleselectBigInt
RESCRIPT
let selectBigInt: (t, bigint) => ruleselectRange
RESCRIPT
let selectRange: (t, ~start: float, ~end: float) => ruleselectRangeInt
RESCRIPT
let selectRangeInt: (t, ~start: int, ~end: int) => ruleselectRangeBigInt
RESCRIPT
let selectRangeBigInt: (t, ~start: bigint, ~end: bigint) => rule