Open longhotsummer opened 7 years ago
We're tracking this in the https://github.com/Code4SA/pocketreporter/tree/l10n branch
Topics and questions will be translated based on keys:
Most other phrases will be translated using the english as the key
We should probably have a script to put together a spreadsheet of translations, based on the 'en-za' translation in L10N.js, so that it's easier to source translations. Dealing with a .json file is awkward.
We have had a number of requests to localise the app. We should look into the cost of doing this.
An option would be to use http://airbnb.io/polyglot.js/
Current requests:
Portuguese (Mozambique)
Spanish
isiXhosa
[x] mechanism to load localisations (
js/L10N.js
)[ ] allow the user to change their language, update the UI when that happens
[ ] get localisations
[ ] localise dates/times - momentjs has some locales, but not Xhosa.