Add translation data to the translator. translation
can be a nested object.
The language for which to add the translation
A translation object of the form {id: translationForId}
Flattens a translation object into flat ids.
flattened translation object
Get the available languages.
Get the currently used language.
Guess user language from user agent if available, or use first available language otherwise
Subscribe to translations for an id.
an Observable that emits new translations
Set the available languages. The first one is the default language.
The new default language, e.g. ["en", "de", "ar"]
Set the language to use for translations.
The language to use for translations, e.g. "en"
Overwrite translation data on the translator. translation
can be a nested object.
The language for which to add the translation
A translation object of the form {id: translationForId}
Subscribe to translations for an id.
Throws an error if language isn't available in translator
Translate an id into the corresponding translation for the current language
Create a new translator.