You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns a map of all found languages and their native name.
394
-
* Looksup following keys in the translations 'LANGUAGE_NAME_<lang>'.
393
+
* Returns a map of all found languages either in their native name or in a specified language.
394
+
* Looksup following keys in each translation file:
395
+
* - 'LANGUAGE_NAME_<LANG>': Name of the language <LANG> in the current language the file represents e.g. in `en.json` the key `LANGUAGE_NAME_DE` would contain `German`.
396
+
* - 'LANGUAGE_NAME': Native name of the language the file represents e.g. in `en.json` the key `LANGUAGE_NAME` would contain `English`.
397
+
* @param inLang Language code in which the language names should be returned (if null the native names will be returned).
395
398
* @param translationsDir Relative path to directory containing JSON files with translations
396
399
* @returns Promise that resolves to a map of language codes and their native names.
0 commit comments