File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
This is a JS library for Chinese static websites to quickly create its English version.
6
6
7
- 版本:v1.1
7
+ 版本:v1.2
8
8
9
9
by [ xuanzhi33] ( https://github.com/xuanzhi33/ )
10
10
11
- demo: [ www.xuanzhi33.cn ] ( https://www.xuanzhi33.cn/ )
12
-
13
11
## 引入
14
12
1 . 请在` </body> ` 前引入本js
15
13
2 . 在引入本js前需先引入jQuery库,推荐使用cdn:
16
14
17
15
```
18
- <script src="https://cdn.jsdelivr.net/npm/ jquery@3.5.0 /dist/jquery.min.js"></script>
16
+ <script src="https://unpkg.com/ jquery@3/dist/jquery.min.js"></script>
19
17
```
20
18
3 . 您可下载本仓库中的translate.js后引入或者直接使用cdn引入:
21
19
22
20
```
23
- <script src="https://cdn.jsdelivr.net/gh/xuanzhi33/translate.js@v1.1 /translate.js"></script>
21
+ <script src="https://unpkg.com/@xuanzhi33 /translate.js"></script>
24
22
```
25
23
26
24
## 用法
@@ -31,3 +29,4 @@ demo: [www.xuanzhi33.cn](https://www.xuanzhi33.cn/)
31
29
4 . 语言切换方式
32
30
- 自动切换:系统语言为英文时访问该页面将自动显示为英文。
33
31
- 手动切换:需在页面上添加class为transBtn的按钮,用户点击该按钮来切换语言。
32
+
You can’t perform that action at this time.
0 commit comments