We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae5f4c2 commit 00b438bCopy full SHA for 00b438b
1 file changed
src/compiler/tsc.ts
@@ -38,7 +38,7 @@ module ts {
38
}
39
40
function trySetLanguageAndTerritory(language: string, territory: string, errors: Diagnostic[]): boolean {
41
- var compilerFilePath = sys.getExecutingFilePath();
+ var compilerFilePath = normalizePath(sys.getExecutingFilePath());
42
var containingDirectoryPath = getDirectoryPath(compilerFilePath);
43
44
var filePath = combinePaths(containingDirectoryPath, language);
@@ -62,7 +62,7 @@ module ts {
62
return false;
63
64
try {
65
- localizedDiagnosticMessages = JSON.parse(fileContents);
+ ts.localizedDiagnosticMessages = JSON.parse(fileContents);
66
67
catch (e) {
68
errors.push(createCompilerDiagnostic(Diagnostics.Corrupted_locale_file_0, filePath));
0 commit comments