rebuilt with the bug fix in tinode-js

This commit is contained in:
or-else
2020-12-13 19:03:16 -08:00
parent 1d1c9400f8
commit b014592381
4 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ const i18n = {
self.i18nMessage = function(id) {
// Choose translations: given something like 'de-CH', try 'de-CH' then 'de' then 'en'.
const lang = i18n[self.locale] || i18n[self.baseLocale] || i18n['en'];
// Try id in the specified language, if missing try English, otherwise use id as the last resort.
// Try finding string by id in the specified language, if missing try English, otherwise use the id itself
// as the last resort.
return lang[id] || i18n['en'][id] || id;
}