# AI Novel Generator Pro v4.0 ## πŸ“– Documentation / TΓ i liệu / ζ–‡ζ‘£ | Language | Link | |----------|------| | πŸ‡¨πŸ‡³ δΈ­ζ–‡ (Chinese) | [locales/CN/δ½Ώη”¨θ―΄ζ˜Ž.md](locales/CN/δ½Ώη”¨θ―΄ζ˜Ž.md) | | πŸ‡»πŸ‡³ TiαΊΏng Việt (Vietnamese) | [locales/VI/δ½Ώη”¨θ―΄ζ˜Ž.md](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: ```bash # Chinese (default) python app.py # Vietnamese set APP_LANGUAGE=VI python app.py ``` ### Adding a New Language 1. Create a new directory under `locales/` (e.g. `locales/EN/`) 2. Copy `locales/CN/messages.json` as a template 3. Translate all values in the JSON file 4. Set `APP_LANGUAGE=EN` and start the app