Skip to content

Commit

Permalink
localized command line tool, fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
gasolin committed Feb 19, 2019
1 parent 700bce0 commit b22498f
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ cp typescript/src/compiler/scanner.ts src/patched/compiler/.
cp typescript/src/compiler/tsconfig.json src/patched/compiler/.
cp typescript/src/compiler/types.ts src/patched/compiler/.
cp typescript/src/compiler/utilities.ts src/patched/compiler/.
cp typescript/src/tsc/tsc.ts src/patched/tsc/.

cp typescript/src/compiler/keywords.ts src/common/compiler/.
3 changes: 3 additions & 0 deletions scripts/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ cp typescript/src/compiler/types.ts.diff src/common/compiler/.

node ./node_modules/.bin/file-diff typescript/src/compiler/utilities.ts src/patched/compiler/utilities.ts
cp typescript/src/compiler/utilities.ts.diff src/common/compiler/.

node ./node_modules/.bin/file-diff typescript/src/tsc/tsc.ts src/patched/tsc/tsc.ts
cp typescript/src/tsc/tsc.ts.diff src/common/tsc/.
3 changes: 3 additions & 0 deletions scripts/patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ node ./node_modules/.bin/filecompare src/patched/compiler/types.ts typescript/sr

node ./node_modules/.bin/file-patch src/common/compiler/utilities.ts.diff typescript/src/compiler/utilities.ts
node ./node_modules/.bin/filecompare src/patched/compiler/utilities.ts typescript/src/compiler/utilities.ts

node ./node_modules/.bin/file-patch src/common/tsc/tsc.ts.diff typescript/src/tsc/tsc.ts
node ./node_modules/.bin/filecompare src/patched/tsc/tsc.ts typescript/src/tsc/tsc.ts
2 changes: 1 addition & 1 deletion src/cn/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace ts {
typeDefinitionDirSuffix: "@types-zh-cn"
},
Language: {
language: "zh-CN"
language: "zh-cn"
},
golbalType: {
AsyncIterable: "异步可迭代_",
Expand Down
4 changes: 4 additions & 0 deletions src/common/tsc/tsc.ts.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@@ -2075,32 +2075,163 @@
gs);%0D%0A%0D%0A
+// Set the default locale%0D%0A validateLocaleAndSetLanguage(unicodeDic.Language.language, sys, commandLine.errors);%0D%0A%0D%0A
if (commandLine.
403 changes: 403 additions & 0 deletions src/patched/tsc/tsc.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/tw/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace ts {
typeDefinitionDirSuffix: "@types-zh-tw"
},
Language: {
language: "zh-TW"
language: "zh-tw"
},
golbalType: {
AsyncIterable: "非同步可迭代_",
Expand Down

0 comments on commit b22498f

Please sign in to comment.