Skip to content

Commit

Permalink
change tw keyword let, const, var, fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
gasolin committed Feb 14, 2019
1 parent 1897375 commit 390e8ac
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# 0.-.- In Porgress

- Based on TypeScript v3.3.1
- Support languages:
- Simplified Chinese (`lingascript-cn`)
- Traditional Chinese (`lingascript-tw`)

- Update issue templates
- Add npm badges for support language packages
- Add Simplified Chinese Readme #11, thanks @nobodxbodon

Keywords change:
- lingascript-tw
- let 變量 -> 變數
- const 常量 -> 常數
- var 全域變量 -> 全域變數

# 0.1.1 (2019/2/13) Initial Release

- Based on TypeScript v3.3.1
- Support languages:
- Simplified Chinese (no npm package yet, see #11)
- Traditional Chinese (`lingascript-tw`)

- patch TypeScript through npm scripts and file-patch
- Basic tests passed
- (Native) Language specific readme
2 changes: 1 addition & 1 deletion examples/tw/src/basic.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://www.typescriptlang.org/docs/handbook/basic-types.html

// Boolean
變量 isDone: boolean = 假的;
變數 isDone: boolean = 假的;

// Number
let decimal: number = 6;
Expand Down
2 changes: 1 addition & 1 deletion examples/tw/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"allowJs": true,
"target": "es6",
"diagnostics": true,
"locale": "en"
"locale": "zh-TW"
},
"include": [
"./src/**/*"
Expand Down
4 changes: 2 additions & 2 deletions src/tw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ npm install -g lingascript-tw
建立`測試.ts`檔案如下

```js
變量 一切都是 = 假的;
變數 一切都是 = 假的;
```

或加上 TypeScript 宣告

```js
變量 一切都是:真假 = 假的;
變數 一切都是:真假 = 假的;
```

然後使用以下命令編譯
Expand Down

0 comments on commit 390e8ac

Please sign in to comment.