configure()
Configures the i18n context.
configure(
locale: string,
provider?: Partial<DeferredString.I18nProvider>,
): this;
Summary
This method can be used to set the current internationalization locale and options, which are used by fmt() and Binding.fmt() to translate and format strings. After using this method, re-render all views if needed using () app.remount().
Parameters
- locale — The name of the current locale.
- provider — An object with (optional) methods that determine the behavior of the current locale, including translation and formatting. The current locale is cleared before applying the new methods.
Related
class I18nContext
An object that provides internationalization functionality for the current locale.
