Segmenter
Not supported in Firefox
t
RESCRIPT
type t
granularity
RESCRIPT
type granularity = [#grapheme | #sentence | #word]
options
RESCRIPT
type options = {
localeMatcher?: Core__Intl__Common.localeMatcher,
granularity?: granularity,
}
pluralCategories
RESCRIPT
type pluralCategories = [
| #few
| #many
| #one
| #other
| #two
| #zero
]
resolvedOptions
RESCRIPT
type resolvedOptions = {
locale: string,
granularity: granularity,
}
supportedLocalesOptions
RESCRIPT
type supportedLocalesOptions = {
localeMatcher: Core__Intl__Common.localeMatcher,
}
make
RESCRIPT
let make: unit => t
makeWithLocale
RESCRIPT
let makeWithLocale: string => t
makeWithLocales
RESCRIPT
let makeWithLocales: array<string> => t
makeWithLocaleAndOptions
RESCRIPT
let makeWithLocaleAndOptions: (string, options) => t
makeWithLocalesAndOptions
RESCRIPT
let makeWithLocalesAndOptions: (array<string>, options) => t
makeWithOptions
RESCRIPT
let makeWithOptions: options => t
supportedLocalesOf
RESCRIPT
let supportedLocalesOf: array<string> => t
supportedLocalesOfWithOptions
RESCRIPT
let supportedLocalesOfWithOptions: (array<string>, supportedLocalesOptions) => t
resolvedOptions
RESCRIPT
let resolvedOptions: t => resolvedOptions
segment
RESCRIPT
let segment: (t, string) => Core__Intl__Segments.t