code4sac / sacramento-campaign-finance

Dataset and dashboard of money in local politics
https://sacramento-campaign-cash.netlify.app/
2 stars 5 forks source link

Add support for other languages #14

Open natebass opened 1 year ago

natebass commented 1 year ago

Translate the website to other languages to increase awareness in non-English speaking communities. This could help foster relationships with non-English media outlets and local journalists.

This would require translating static text (non-data related) into multiple files, like en.json and es.json, that the application would inject into the page when a language is selected. We would need to coordinate volunteers to help to do this. We could do some of the translation automatically, but the process shouldn't be totally automated.

To officially support a language, I think we should have a fluent speaker overview the changes. Instead of manually clicking through the site, we could create a list of all links that need to be checked. These links would then be signed off ✅ or marked for changes ❌. We should consider a document type, form, or other type of application that could help with facilitating this.

Svelte library we could use: https://github.com/kaisermann/svelte-i18n.

Routes for languages could look like this:

Indicating language in links: https://www.w3.org/International/questions/qa-link-lang