Skip to content

Commit

Permalink
fix lang changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Keul committed Mar 13, 2024
1 parent 39d3335 commit faf244e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,21 @@ If you want to add a new language, it's only a 2-step process:
[languages.en.params]
languageName = 'english'
languageNameShort = 'en'
languageCode = 'en'
[languages.fr]
contentDir = 'i18n/fr'
weight = 2
[languages.fr.params]
languageName = 'français'
languageNameShort = 'fr'
languageCode 'fr'
[languages.es]
contentDir = 'i18n/es'
weight = 3
[languages.fr.params]
languageName = 'español'
languageNameShort = 'es'
languageCode = 'es'
```
2. In the `i18n/` folder, add a yml file with the language shortname, e.g. `i18n/es.yml` (if spanish), and translate each key in this file.

Expand Down

0 comments on commit faf244e

Please sign in to comment.