提交 56220afb 编写于 作者: D Dirk Baeumer

Fixes #54819: Support English locales like en-gb, en-au

上级 7143be30
......@@ -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: {} });
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册