|
| 1 | +# Release v1.1.0 |
| 2 | + |
| 3 | +**Release Date**: TBD |
| 4 | + |
| 5 | +This release adds comprehensive internationalization (i18n) support to sphinx-exercise, enabling the extension to display exercise and solution labels in 27 different languages. |
| 6 | + |
| 7 | +## ✨ New Features |
| 8 | + |
| 9 | +### Internationalization Support |
| 10 | + |
| 11 | +The extension now supports **27 languages** with automatic language detection: |
| 12 | + |
| 13 | +**East Asian**: Chinese (zh_CN), Japanese (ja), Korean (ko) |
| 14 | + |
| 15 | +**South Asian**: Bengali (bn), Hindi (hi), Tamil (ta) |
| 16 | + |
| 17 | +**Middle Eastern**: Arabic (ar), Turkish (tr) |
| 18 | + |
| 19 | +**European**: Czech (cs), Dutch (nl), French (fr), German (de), Greek (el), Hungarian (hu), Italian (it), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Spanish (es), Swedish (sv), Ukrainian (uk) |
| 20 | + |
| 21 | +**Southeast Asian**: Indonesian (id), Malay (ms), Vietnamese (vi) |
| 22 | + |
| 23 | +### Automatic Language Detection |
| 24 | + |
| 25 | +The extension automatically detects your Sphinx project's language configuration and applies the appropriate translations: |
| 26 | + |
| 27 | +```python |
| 28 | +# conf.py |
| 29 | +language = 'zh_CN' # Chinese |
| 30 | +``` |
| 31 | + |
| 32 | +```yaml |
| 33 | +# _config.yml (Jupyter Book) |
| 34 | +sphinx: |
| 35 | + config: |
| 36 | + language: ja # Japanese |
| 37 | +``` |
| 38 | +
|
| 39 | +### Translation Examples |
| 40 | +
|
| 41 | +With language configured, directive labels automatically translate: |
| 42 | +
|
| 43 | +- **Spanish**: "Exercise" → "Ejercicio", "Solution to" → "Solución a" |
| 44 | +- **Chinese**: "Exercise" → "练习", "Solution to" → "解答" |
| 45 | +- **Japanese**: "Exercise" → "練習", "Solution to" → "解答" |
| 46 | +- **French**: "Exercise" → "Exercice", "Solution to" → "Solution de" |
| 47 | +- **German**: "Exercise" → "Übung", "Solution to" → "Lösung zu" |
| 48 | +- **Arabic**: "Exercise" → "تمرين", "Solution to" → "الحل لـ" |
| 49 | +- **Hindi**: "Exercise" → "अभ्यास", "Solution to" → "समाधान" |
| 50 | +
|
| 51 | +## 👌 Improvements |
| 52 | +
|
| 53 | +- **JSON-based translations**: Source translations stored in easy-to-edit JSON format |
| 54 | +- **Alphabetical organization**: All language entries sorted alphabetically for maintainability |
| 55 | +- **Automated build process**: Script to generate `.po` and `.mo` files from JSON sources |
| 56 | +- **Enhanced documentation**: Comprehensive guides for using and contributing translations |
| 57 | + |
| 58 | +## 📚 Documentation Updates |
| 59 | + |
| 60 | +- Added internationalization section to [syntax guide](../syntax.md#internationalization-i18n) |
| 61 | +- Updated README with i18n feature highlights |
| 62 | +- Created releases documentation structure |
| 63 | +- Enhanced translation README with contribution workflow |
| 64 | +- Added Copilot instructions for maintainers |
| 65 | + |
| 66 | +## 🛠️ Infrastructure |
| 67 | + |
| 68 | +- Added `.github/copilot-instructions.md` for project maintenance guidelines |
| 69 | +- Created `docs/releases/` structure for release documentation |
| 70 | +- Improved translation contribution workflow |
| 71 | + |
| 72 | +## 🙏 Contributing Translations |
| 73 | + |
| 74 | +We welcome contributions for additional languages or improvements to existing translations! |
| 75 | + |
| 76 | +Translation files are maintained in `sphinx_exercise/translations/jsons/` as JSON files for easy editing. See the [translation guide](https://github.com/executablebooks/sphinx-exercise/tree/main/sphinx_exercise/translations) for details on how to contribute. |
| 77 | + |
| 78 | +## 📦 Installation |
| 79 | + |
| 80 | +Install or upgrade via pip: |
| 81 | + |
| 82 | +```bash |
| 83 | +pip install --upgrade sphinx-exercise |
| 84 | +``` |
| 85 | + |
| 86 | +For development installation: |
| 87 | + |
| 88 | +```bash |
| 89 | +git clone https://github.com/executablebooks/sphinx-exercise |
| 90 | +cd sphinx-exercise |
| 91 | +pip install -e . |
| 92 | +``` |
| 93 | + |
| 94 | +## 🔗 Links |
| 95 | + |
| 96 | +- [Full Changelog](https://github.com/executablebooks/sphinx-exercise/blob/main/CHANGELOG.md) |
| 97 | +- [Documentation](https://ebp-sphinx-exercise.readthedocs.io/en/latest/) |
| 98 | +- [GitHub Repository](https://github.com/executablebooks/sphinx-exercise) |
| 99 | +- [Issue Tracker](https://github.com/executablebooks/sphinx-exercise/issues) |
0 commit comments