Docs (4.0.0)
interface I18nProvider type

type Attributes

Attributes that describe the locale and its formatting rules.

static

type Attributes = {
    locale: string;
    rtl?: boolean;
    decimalSeparator?: string;
}

Notes

  • These attributes can be used by the application to adjust its behavior based on the current locale
  • The locale attribute is required, while the others are optional
  • The rtl attribute should only be set to true if the writing direction for the locale is right-to-left
  • The decimalSeparator attribute is used to determine the decimal separator for numeric values, . or ,; this attribute defaults to . if not provided

Related