diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 14 insertions, 4 deletions
| @@ -30,10 +30,20 @@ This project uses [Prettier](https://prettier.io/) formatting. All pull requests | |||
| 30 | 30 | ||
| 31 | We would love for you to contribute to different languages and help make it even better than it is today! As a language contributor, here are some steps we would like you to follow: | 31 | We would love for you to contribute to different languages and help make it even better than it is today! As a language contributor, here are some steps we would like you to follow: |
| 32 | 32 | ||
| 33 | 1. Add a translation to [`./src/i18n.js`](./src/i18n.js) | 33 | 1. Add a translation to [`./src/translations.js`](./src/translations.js), e.g.: |
| 34 | 2. Add the language option in alphabetical order to [`./src/components/Settings.js`](./src/components/Settings.js) in the format `latinName - nativeName`, e.g. `French - Français` | 34 | |
| 35 | 3. If the languages added require RTL direction, add the language keys to RTL_LANGUAGES constant in [`./src/App.js`](./src/App.js) | 35 | ``` |
| 36 | 4. Append an entry to the [Supported Languages](#supported-languages) table in below. | 36 | { |
| 37 | id: 'de-DE', // locale code | ||
| 38 | name: 'German - Deutsch', // Display name in the format 'latinName - nativeName' | ||
| 39 | rtl: true, // Optional, true if this is a right-to-left language | ||
| 40 | translation: { | ||
| 41 | ... | ||
| 42 | } | ||
| 43 | } | ||
| 44 | ``` | ||
| 45 | |||
| 46 | 2. Append an entry to the [Supported Languages](#supported-languages) table in below. | ||
| 37 | 47 | ||
| 38 | ## Supported Languages | 48 | ## Supported Languages |
| 39 | 49 | ||
