summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared/gettext.ts
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/shared/gettext.ts')
-rw-r--r--gui/src/shared/gettext.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/src/shared/gettext.ts b/gui/src/shared/gettext.ts
index c8cc97969c..d7cd0f8b23 100644
--- a/gui/src/shared/gettext.ts
+++ b/gui/src/shared/gettext.ts
@@ -64,8 +64,9 @@ function setErrorHandler(catalogue: Gettext) {
// NOTE: locale is not publicly exposed
const catalogueLocale = (catalogue as any).locale;
- // Filter out the "no translation was found" errors for the source language
- if (catalogueLocale === SOURCE_LANGUAGE && error.indexOf('No translation was found') !== -1) {
+ // Filter out the "no translation was found" errors for the source language.
+ // The catalogue's locale is set to an empty string when using the source translation.
+ if (catalogueLocale === '' && error.indexOf('No translation was found') !== -1) {
return;
}