Feature request: Internationalization
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Support showing UI in user's language.
This is not necessarily a "flet concern", as all the necessary machinery can be "on top" of the controls (e.g. Text control value is given by a function call that gets user's language and a message identifier as parameters, and returns the actual text to show in user's language).
But, it would be nice to have a shared/recommended way to implement this, instead of everyone rolling their own.
Python standard library provides gettext, which is used by heavyweights like Django.
We could even support automatic (and risky) batch translation to various languages, see e.g. this article.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the Text control receives its value and Python's gettext documentation, including its use in Django. The issue names no files or tests; first clarify the shared API and scope for user-language messages, then define completion around an agreed recommended implementation rather than ad hoc translations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- internationalization, localization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100