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.
1 parent 43b3c9a commit 7258a71Copy full SHA for 7258a71
1 file changed
Switch Traditional Chinese and Simplified Chinese/lib/readme.md
@@ -1,6 +1,6 @@
1
簡繁自由切換
2
===
3
-> 切換簡體中文與正體中文
+> 切換正體/簡體中文,超輕量級,支援自訂詞彙與「一簡多繁」轉換,無任何相依性
4
5
[](https://www.npmjs.com/package/switch-chinese) [](https://www.npmjs.com/package/switch-chinese)
6
@@ -10,9 +10,9 @@
10
+ 基礎用法
11
12
``` js
13
-import Stcasc from './stcasc.lib.js';
14
-let stcasc = Stcasc();
15
-console.log(stcasc.traditionalized("香烟 香烟袅袅 烟雾里 里长面子 吃干面 干 把考卷发回来 卷发"));
+const stcasc = Stcasc();
+const sc = "香烟 香烟袅袅 烟雾里 里长面子 吃干面 干 把考卷发回来 卷发";
+console.log(stcasc.traditionalized(sc));
16
//香菸 香煙裊裊 煙霧裡 里長面子 吃乾麵 幹 把考卷發回來 捲髮
17
```
18
0 commit comments