Skip to content

Commit 00b438b

Browse files
Normalized path for localized diagnostics message map.
1 parent ae5f4c2 commit 00b438b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/tsc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module ts {
3838
}
3939

4040
function trySetLanguageAndTerritory(language: string, territory: string, errors: Diagnostic[]): boolean {
41-
var compilerFilePath = sys.getExecutingFilePath();
41+
var compilerFilePath = normalizePath(sys.getExecutingFilePath());
4242
var containingDirectoryPath = getDirectoryPath(compilerFilePath);
4343

4444
var filePath = combinePaths(containingDirectoryPath, language);
@@ -62,7 +62,7 @@ module ts {
6262
return false;
6363
}
6464
try {
65-
localizedDiagnosticMessages = JSON.parse(fileContents);
65+
ts.localizedDiagnosticMessages = JSON.parse(fileContents);
6666
}
6767
catch (e) {
6868
errors.push(createCompilerDiagnostic(Diagnostics.Corrupted_locale_file_0, filePath));

0 commit comments

Comments
 (0)