local
Localizes a single value using the current I18n provider.
static
static local(value: any, ...type: string[]): string
Summary
This method calls I18nProvider.format on the current application I18n provider (see app.i18n), with a single value and format type.
Typically, you don’t need to call this method yourself. it’s used automatically by strf(), LazyString.format(), and Binding.local.
Parameters
- value — The value to be localized
- type — The format type, passed to I18nProvider.format
Related
- class LazyStringAn object that encapsulates a string, evaluated only when needed.