API / Core / Intl / Pluralrules

PluralRules

t

RESCRIPT
type t

localeType

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=?) => t

supportedLocalesOf

RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => t

resolvedOptions

RESCRIPT
let resolvedOptions: t => resolvedOptions

rule

RESCRIPT
type rule = [#few | #many | #one | #other | #two | #zero]

select

RESCRIPT
let select: (t, float) => rule

selectInt

RESCRIPT
let selectInt: (t, int) => rule

selectBigInt

RESCRIPT
let selectBigInt: (t, Core__BigInt.t) => rule

selectRange

RESCRIPT
let selectRange: (t, ~start: float, ~end: float) => rule

selectRangeInt

RESCRIPT
let selectRangeInt: (t, ~start: int, ~end: int) => rule

selectRangeBigInt

RESCRIPT
let selectRangeBigInt: (t, ~start: Core__BigInt.t, ~end: Core__BigInt.t) => rule