mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +00:00
i18n: Use English as fallback language.
In case app.getLocale() returns a falsey value, English is used as the app language.
This commit is contained in:
committed by
Akash Nimare
parent
6d34da5953
commit
47b729cbc2
@@ -28,7 +28,7 @@ class TranslationUtil {
|
||||
}
|
||||
|
||||
__(phrase: string): string {
|
||||
return i18n.__({ phrase, locale: app.getLocale() });
|
||||
return i18n.__({ phrase, locale: app.getLocale() ? app.getLocale() : 'en' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user