Solidtype_kobalte.I18nmodule I18nProvider : sig ... endProvides the locale for the application to all child components.
val create_collator :
?options:Types.CollatorOptions.t ->
unit ->
Types.Collator.t Solidtype.Solid.accessorProvides localized string collation for the current locale. Automatically updates when the locale changes, and handles caching of the collator for performance.
val create_date_formatter :
(Types.DateTimeFormatOptions.t,
Types.DateTimeFormatOptions.t Solidtype.Solid.accessor)
Types.Either.t ->
Types.DateTimeFormat.t Solidtype.Solid.accessorProvides localized date formatting for the current locale. Automatically updates when the locale changes, and handles caching of the date formatter for performance.
val create_default_locale : unit -> Types.I18n_CreateDefaultLocale.tReturns an accessor for the current browser/system language, and updates when it changes.
val create_filter : ?options:Types.CollatorOptions.t -> unit -> Types.Filter.tProvides localized string search functionality that is useful for filtering or matching items in a list. Options can be provided to adjust the sensitivity to case, diacritics, and other parameters.
val create_number_formatter :
(Types.NumberFormatOptions.t,
Types.NumberFormatOptions.t Solidtype.Solid.accessor)
Types.Either.t ->
Types.NumberFormat.t Solidtype.Solid.accessorProvides localized number formatting for the current locale. Automatically updates when the locale changes, and handles caching of the number formatter for performance.
val get_default_locale : unit -> Types.Locale.tGets the locale setting of the browser.
Determines if a locale is read right to left using [Intl.Locale] {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale}.
val use_locale : unit -> Types.I18n_UseLocale.tReturns an accessor for the current locale and layout direction.