summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-04-11 14:29:09 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-04-11 14:29:09 +0200
commit336ca26d259d81d189faee521f4fd2cfa7d13f7e (patch)
tree1d56871d35587ebe17c9f96366b9ad898c1f70c1 /gui/src/shared
parent8f4b572757de6e2d165c3d3f9a7e016e1c6e1084 (diff)
parent2d61a2b8292bcc6dcb5f2500c570bb4d04d0480d (diff)
downloadmullvadvpn-336ca26d259d81d189faee521f4fd2cfa7d13f7e.tar.xz
mullvadvpn-336ca26d259d81d189faee521f4fd2cfa7d13f7e.zip
Merge branch 'electron-4'
Diffstat (limited to 'gui/src/shared')
-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;
}