Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instruction for translators #110

Open
szabgab opened this issue Jun 4, 2022 · 0 comments
Open

Add instruction for translators #110

szabgab opened this issue Jun 4, 2022 · 0 comments

Comments

@szabgab
Copy link
Contributor

szabgab commented Jun 4, 2022

I would like to create a transaltion of the game and send a PR. It would be nice if the README had the instructions.
I came up with this:

How to translate

To translate the interface create the appropriate file in the src/i18n/messages/ directory translating the entries from src/i18n/messages/en-CA.ts and add the new entry to src/i18n/messages/index.ts

To allow the user to select a language add the entry to the langMap in in src/components/LanguagePicker.tsx.

To be able to use the country names in the specific language add the translations of the country-names to src/data/country_data.json

Is this enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant