getCulture()
Returns current (user) culture preferences and/or locale defaults, as reported by the configured i18n provider.
getCulture(): Record<string, any>;
Notes
- This method returns an object with culture-specific options, as used by e.g. localizable widgets. The exact properties of this object are intentionally application and platform specific. They may be initialized from defaults for the selected language and region, and extended with user preferences (to allow for e.g.
en-USlanguage with non-US date formatting). - The framework renderer itself may use at least the
textDirectionproperty, if present, to determine whether the current locale uses right-to-left script.
Related
class I18nContext
An object that provides internationalization functionality for the current locale.interface DeferredString.I18nProvider static
An interface that provides functionality for translating and formatting strings.
