Skip to content

Commit

Permalink
Locale contributing clarification
Browse files Browse the repository at this point in the history
Added an extra info to clone the dev branch for avoiding conflicts.
  • Loading branch information
jannikstdl authored May 25, 2024
1 parent c9589e2 commit 83058c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ We use JSON files to store translations. You can find the existing translation f

To add a new language:

- Make sure to use a clone of the "dev" branch from your fork (e.g. `git checkout -b locale-for-xy 'origin/dev'`) in order to avoid conflicts.
- Create a new directory in the `src/lib/i18n/locales` path with the appropriate language code as its name. For instance, if you're adding translations for Spanish (Spain), create a new directory named `es-ES`.
- Copy the American English translation file(s) (from `en-US` directory in `src/lib/i18n/locale`) to this new directory and update the string values in JSON format according to your language. Make sure to preserve the structure of the JSON object.
- Add the language code and its respective title to languages file at `src/lib/i18n/locales/languages.json`.
Expand Down

0 comments on commit 83058c5

Please sign in to comment.