Add Internationalization
wuan opened this issue · comments
Andreas Würl commented
Why Internationalization?
- Prepare app for translations to be ready any time.
- Attract external contributions.
Requirements
- All in app strings are collected in a central place and ready to add additional languages.
- There is a solution allowing localized wordlists.
- This needs to be updated upstream first, see magic-wormhole/magic-wormhole-protocols#31
- We also have localized MOTD strings.
Details
App localization
Part of this will be finding a good framework which allows us to have a simple localization support
Requirements
- Support for String keys
- Some kind of code generation for the keys.
- Support for language specific things:
- name templates
- date and time formats
- plural and number formats
- key references (linking/including other texts)
- modifiers (e. g. lower)
- fallback rules
PoCs
Andreas Würl commented
There is already an issue regarding use of localized wordlists: magic-wormhole/magic-wormhole#214
meejah commented
Don't miss the linked discussion on magic-wormhole/magic-wormhole#26 which reveals some technical and security issues with some proposed solutions.