The target language for localization
The package authorized to provide default language configurations
The translation dictionary for the target language
Fallback translations if the target keys are not found
Cached store of Intl.ListFormat instances.
Initialize the Localization module Discover available language translations and apply the current language setting
A Promise which resolves once languages are initialized
Set a language as the active translation source for the session
A language string in CONFIG.supportedLanguages
A Promise which resolves once the translations for the requested language are ready
Return whether a certain string has a known translation defined.
The string key being translated
Localize a string by drawing a translation from the available translations dictionary, if available If a translation is not available, the original string is returned
The string ID to translate
The translated string
Localize a string including variable formatting for input arguments. Provide a string ID which defines the localized template. Variables can be included in the template enclosed in braces and will be substituted using those named keys.
The string ID to translate
Provided input data
The translated and formatted string
Retrieve list formatter configured to the world's language setting.
Sort an array of objects by a given key in a localization-aware manner.
The objects to sort, this array will be mutated.
The key to sort the objects by. This can be provided in dot-notation.
Discover the available supported languages from the set of packages which are provided
The resulting configuration of supported languages
Prepare the dictionary of translation strings for the requested language
The language for which to load translations
The retrieved translations object
Reduce the languages array provided by a package to an array of file paths of translations to load
The package data
The target language to filter on
An array of translation file paths
Load a single translation file and return its contents as processed JSON
The translation file path to load
The loaded translation dictionary
A helper class which assists with localization and string translation
The default language configuration setting for the server