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
    • NumberFormat
      • Grouping
    • Locale
      • t
        t
      • t
        options
      • v
        make
      • v
        baseName
      • v
        calendar
      • v
        caseFirst
      • v
        collation
      • v
        hourCycle
      • v
        language
      • v
        numberingSystem
      • v
        numeric
      • v
        region
      • v
        script
      • v
        maximize
      • v
        minimize
    • 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 / Locale

    Locale

    t

    RESCRIPT
    type t

    options

    RESCRIPT
    type options = { baseName?: string, calendar?: Core__Intl__Common.calendar, collation?: Core__Intl__Common.collation, hourCycle?: [#h11 | #h12 | #h23 | #h24], caseFirst?: [#"false" | #lower | #upper], numberingSystem?: Core__Intl__Common.numberingSystem, numeric?: bool, language?: string, script?: string, region?: string, }

    make

    RESCRIPT
    let make: (string, ~options: options=?) => t

    baseName

    RESCRIPT
    let baseName: t => string

    calendar

    RESCRIPT
    let calendar: t => option<string>

    caseFirst

    RESCRIPT
    let caseFirst: t => option<string>

    collation

    RESCRIPT
    let collation: t => option<string>

    hourCycle

    RESCRIPT
    let hourCycle: t => option<string>

    language

    RESCRIPT
    let language: t => string

    numberingSystem

    RESCRIPT
    let numberingSystem: t => option<string>

    numeric

    RESCRIPT
    let numeric: t => bool

    region

    RESCRIPT
    let region: t => option<string>

    script

    RESCRIPT
    let script: t => option<string>

    maximize

    RESCRIPT
    let maximize: t => t

    minimize

    RESCRIPT
    let minimize: t => t
    Types and values
    • t
      t
    • t
      options
    • v
      make
    • v
      baseName
    • v
      calendar
    • v
      caseFirst
    • v
      collation
    • v
      hourCycle
    • v
      language
    • v
      numberingSystem
    • v
      numeric
    • v
      region
    • v
      script
    • v
      maximize
    • v
      minimize

    © 2024 The ReScript Project

    Software and assets distribution powered by KeyCDN.

    About
    • Community
    • ReScript Association
    Find us on