Skip to content

Commit 9a323ef

Browse files
author
luting
committed
📃 docs(README): 补充脚本依赖
1 parent 160dd33 commit 9a323ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ docker build -t lutinglt/superset-zh .
3232

3333
### 手动汉化
3434

35+
脚本依赖 `babel``polib` 并基于 Python 3.12 构建, 其中使用了一些类型注解可能会影响兼容性, 如有报错请自行删除, Python 3.8 以上理论上都可以直接运行.
36+
37+
```bash
38+
pip install babel polib
39+
```
40+
3541
找到 Superset 安装目录下的 `translations` 目录, 找到 `zh/LC_MESSAGES` 目录, 直接将项目仓库里的 `messages.json``messages.po` 文件复制到 `zh/LC_MESSAGES` 目录下, 然后运行:
3642

3743
```bash

0 commit comments

Comments
 (0)