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 d2f4cd7 + 218bcd8 commit d38b080Copy full SHA for d38b080
src/compiler/tsc.ts
@@ -201,6 +201,11 @@ module ts {
201
var commandLine = parseCommandLine(args);
202
203
if (commandLine.options.locale) {
204
+ if (typeof JSON === "undefined") {
205
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--locale"));
206
+ return sys.exit(1);
207
+ }
208
+
209
validateLocaleAndSetLanguage(commandLine.options.locale, commandLine.errors);
210
}
211
0 commit comments