Generate Change Language dialog from available CrowdIn languages #595
Replies: 1 comment
-
The code getting supported languages in Mapeo Mobile: https://github.com/digidem/mapeo-mobile/blob/develop/src/frontend/context/IntlContext.js |
Beta Was this translation helpful? Give feedback.
-
Describe the idea
Right now, the Change Language dialog is hard coded, only allowing Spanish, English, Portugese, and French. Instead, it should be generated from the available languages.
What's your role? Where and how do you currently use the application?
Tech @ Dd
What is your ideal step by step workflow?
The UX doesn't need to change, just the list of available languages should be larger to reflect all available languages.
Have you thought about what it might look like?
The code that is now hard coded is in
src/renderer/components/dialogs/ChangeLanguage.js
. Instead, this could be generated by scanning the disk for available languages inmessages/renderer/LANG.json
files. It's also possible this can also be detected from React Intl which is already imported into the file, which would be ideal, because it wouldn't involve any extra tooling.Beta Was this translation helpful? Give feedback.
All reactions