We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ac2539 + c53612d commit 704f3bfCopy full SHA for 704f3bf
src/compiler/tsc.ts
@@ -44,11 +44,9 @@ namespace ts {
44
const territory = matchResult[3];
45
46
// First try the entire locale, then fall back to just language if that's all we have.
47
- if (!trySetLanguageAndTerritory(language, territory, errors) &&
48
- !trySetLanguageAndTerritory(language, undefined, errors)) {
49
-
50
- errors.push(createCompilerDiagnostic(Diagnostics.Unsupported_locale_0, locale));
51
- return false;
+ // Either ways do not fail, and fallback to the English diagnostic strings.
+ if (!trySetLanguageAndTerritory(language, territory, errors)) {
+ trySetLanguageAndTerritory(language, undefined, errors);
52
}
53
54
return true;
0 commit comments