From 56220afb7d15ebdbfa1903f6e24024d79e256ba3 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Mon, 13 Aug 2018 14:57:10 +0200 Subject: [PATCH] Fixes #54819: Support English locales like en-gb, en-au --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 1c13edd6c05..711217d64e2 100644 --- a/src/main.js +++ b/src/main.js @@ -260,9 +260,9 @@ function getNLSConfiguration(locale) { // We have a built version so we have extracted nls file. Try to find // the right file to use. - // Check if we have an English locale. If so fall to default since that is our + // Check if we have an English or English US locale. If so fall to default since that is our // English translation (we don't ship *.nls.en.json files) - if (locale && (locale == 'en' || locale.startsWith('en-'))) { + if (locale && (locale === 'en' || locale === 'en-us')) { return Promise.resolve({ locale: locale, availableLanguages: {} }); }