codeforboston / codeforboston/maple
Translations + Internationalization
- Dominant language
- TypeScript
- Stars
- 56
- Forks
- 175
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 13
Description
We want to have the static text on MAPLE translated into the top 5 languages in MA: Spanish, Portuguese, Chinese (simplified), Haitian and French. Once the below extraction work is complete, we will run the translations, and then [create tickets to move the translations into the right json/folders].
We are extract translation strings for the text on each page/component. This does not include translations for testimony or bill content.
Move user-visible text from X section into json files in the public/locales/en folder
in the components, use the next-i18next 'useTranslation' hook to connect the text from the json files
you'll decide how to group and name your text in a way that makes sense for your section
by default, make separate json files following the structure of the project pages/folders, but feel free to diverge from that
make sure to get titles, headers, buttons, labels, and alt text
put common words, labels, etc in the common.json file
some pages have already been extracted more or less into files next to or near the component files, usually with the same file name with 'content' on the end. That text needs to be moved as above, and it's up to you what to do with the content file.
[see also]
Testimony translations
Mitre demo: 7:40 into video
https://drive.google.com/file/d/1D3olHFsxxk1PZhQTfus_cja_cUrI9qeS/view?usp=share_link
Contributor guide
Assessment
This issue has not been assessed yet.