mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 10:00:51 +00:00
Fixes #54819: Support English locales like en-gb, en-au
This commit is contained in:
parent
7143be309a
commit
56220afb7d
1 changed files with 2 additions and 2 deletions
|
@ -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: {} });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue