Skip to content

Commit

Permalink
📃 docs(README): 补充脚本依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
luting committed Nov 22, 2024
1 parent 160dd33 commit 9a323ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ docker build -t lutinglt/superset-zh .

### 手动汉化

脚本依赖 `babel``polib` 并基于 Python 3.12 构建, 其中使用了一些类型注解可能会影响兼容性, 如有报错请自行删除, Python 3.8 以上理论上都可以直接运行.

```bash
pip install babel polib
```

找到 Superset 安装目录下的 `translations` 目录, 找到 `zh/LC_MESSAGES` 目录, 直接将项目仓库里的 `messages.json``messages.po` 文件复制到 `zh/LC_MESSAGES` 目录下, 然后运行:

```bash
Expand Down

0 comments on commit 9a323ef

Please sign in to comment.