Module Solidtype_kobalte.I18n

module I18nProvider : sig ... end

Provides the locale for the application to all child components.

val rtl_langs : string Js.Set.t
val create_collator : ?options:Types.CollatorOptions.t -> unit -> Types.Collator.t Solidtype.Solid.accessor

Provides localized string collation for the current locale. Automatically updates when the locale changes, and handles caching of the collator for performance.

Provides 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.t

Returns an accessor for the current browser/system language, and updates when it changes.

val create_filter : ?options:Types.CollatorOptions.t -> unit -> Types.Filter.t

Provides 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.

Provides 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.t

Gets the locale setting of the browser.

val get_reading_direction : string -> [ `rtl | `ltr ]
val is_rtl : string -> bool

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.t

Returns an accessor for the current locale and layout direction.