Available Language
type AvailableLanguage
This type governs the Default Language constant and the Language Option interface.
Its value is used in the App Component to:
Set the
lang
attribute on thehtml
element.Set the language using Transloco's
setActiveLang
.
It is also used in:
app.config.ts
to provide the list ofavailableLangs
and thedefaultLang
to Transloco.transloco-loader.ts
to mandate the same file name for translations.
available-language.type.ts
Last updated