6699c516cd06975258a08b4cdf7fa3de1b80c64a
AI Novel Generator Pro v4.0
📖 Documentation / Tài liệu / 文档
| Language | Link |
|---|---|
| 🇨🇳 中文 (Chinese) | locales/CN/使用说明.md |
| 🇻🇳 Tiếng Việt (Vietnamese) | locales/VI/使用说明.md |
🌐 i18n (Internationalization)
The application supports multiple languages. Language files are stored in the locales/ directory:
locales/
├── i18n.py # i18n helper module
├── __init__.py # Package init
├── CN/
│ ├── messages.json # UI strings in Chinese (default)
│ └── 使用说明.md # Documentation in Chinese
└── VI/
├── messages.json # UI strings in Vietnamese
└── 使用说明.md # Documentation in Vietnamese
Switching Language
Set the APP_LANGUAGE environment variable before starting the app:
# Chinese (default)
python app.py
# Vietnamese
set APP_LANGUAGE=VI
python app.py
Adding a New Language
- Create a new directory under
locales/(e.g.locales/EN/) - Copy
locales/CN/messages.jsonas a template - Translate all values in the JSON file
- Set
APP_LANGUAGE=ENand start the app
Languages
Python
88.2%
TypeScript
9.9%
CSS
1.4%
Dockerfile
0.2%
Rust
0.2%
Other
0.1%