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

How-To: Add new translations #152

Open
amanharwara opened this issue Aug 7, 2021 · 0 comments
Open

How-To: Add new translations #152

amanharwara opened this issue Aug 7, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@amanharwara
Copy link
Owner

amanharwara commented Aug 7, 2021

  1. Fork the repo & clone it.
  2. Create a new branch.
  3. Create a new folder under public/locales/ with the language code (e.g. hi for Hindi) as the name.
  4. Add the language code to the languages array in the src/i18n/languages.config.ts file.
  5. Create a new file translation.missing.json in the language folder.
  6. Copy translation.json from locales/en into the language folder.
  7. Edit the translation.json file in the language folder and change the values accordingly.
  8. Commit the changes & push it.
  9. Create a pull request.
@amanharwara amanharwara added enhancement New feature or request help wanted Extra attention is needed labels Aug 7, 2021
@amanharwara amanharwara pinned this issue Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant