This is the latest docs version
Quick Links
  • -Overview
  • -Language Features
  • -JS Interop
  • -Build System
Documentation
Language Manual
Reference for all language features
ReScript & React
First class bindings for ReactJS
GenType
Seamless TypeScript integration
Reanalyze
Dead Code & Termination analysis
Exploration
Packages
Explore third party libraries and bindings
Syntax Lookup
Discover all syntax constructs
APIPlaygroundBlogCommunity
  • Playground
  • Blog
  • Twitter
  • GitHub
  • Forum
Core Module
Overview
Core
submodules
  • Array
  • ArrayBuffer
  • AsyncIterator
  • BigInt
  • BigInt64Array
    • Constants
    BigUint64Array
    • Constants
  • Console
  • DataView
  • Date
    • UTC
  • Dict
  • Error
    • URIError
    • TypeError
    • SyntaxError
    • ReferenceError
    • RangeError
    • EvalError
  • Exn
  • Float
    • Constants
    Float32Array
    • Constants
    Float64Array
    • Constants
    Int
    • Constants
    Int16Array
    • Constants
    Int32Array
    • Constants
    Int8Array
    • Constants
  • Internal
  • Intl
    • Segments
    • Segmenter
    • RelativeTimeFormat
    • PluralRules
      • t
        t
      • t
        localeType
      • t
        options
      • t
        pluralCategories
      • t
        resolvedOptions
      • t
        supportedLocalesOptions
      • v
        make
      • v
        supportedLocalesOf
      • v
        resolvedOptions
      • t
        rule
      • v
        select
      • v
        selectInt
      • v
        selectBigInt
      • v
        selectRange
      • v
        selectRangeInt
      • v
        selectRangeBigInt
    • NumberFormat
      • Grouping
    • Locale
    • ListFormat
    • DateTimeFormat
    • Collator
    • Common
  • Iterator
  • JSON
    • Decode
    • Encode
    • Classify
  • List
  • Map
  • MapperRt
  • Math
    • Int
    • Constants
  • Null
  • Nullable
  • Object
  • Option
  • Ordering
  • Promise
  • Re
    • Result
    RegExp
    • Result
  • Result
  • Set
  • String
  • Symbol
  • Type
    • Classify
  • TypedArray
  • Uint16Array
    • Constants
    Uint32Array
    • Constants
    Uint8Array
    • Constants
    Uint8ClampedArray
    • Constants
  • WeakMap
  • WeakSet
  • 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, bigint) => 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: bigint, ~end: bigint) => rule
    Types and values
    • t
      t
    • t
      localeType
    • t
      options
    • t
      pluralCategories
    • t
      resolvedOptions
    • t
      supportedLocalesOptions
    • v
      make
    • v
      supportedLocalesOf
    • v
      resolvedOptions
    • t
      rule
    • v
      select
    • v
      selectInt
    • v
      selectBigInt
    • v
      selectRange
    • v
      selectRangeInt
    • v
      selectRangeBigInt

    © 2024 The ReScript Project

    Software and assets distribution powered by KeyCDN.

    About
    • Community
    • ReScript Association
    Find us on