Per T112307, we should create a Python port of the Intuition i18n library so that more Tool Labs tools can have robust internationalization.
Code repo: https://github.com/Krinkle/intuition
Acceptance criteria:
- Register domains by name and directory path.
- Retrieve messages by key and language from the JSON files.
- Automatically fallback to English for keys not yet translated.
- TranslateWiki integration should be optional.
Try to keep the method names and parameters (function signatures) consistent between the PHP and Python implementations to provide users with a consistent API across both.
See T112307 for further discussion.