diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-28 16:28:55 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-28 16:28:55 +0300 |
commit | 9fb7b4dc3deead3158da579eb489904099c96a36 (patch) | |
tree | 495794481f934e2ec5010bf0c3f94aeb722e6d11 | |
parent | c910418f1c98e1a98058526a7e2c112c1100f2d9 (diff) |
Add section on internationalisation
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -91,6 +91,20 @@ It is possible to use an icon from [the solid set](https://fontawesome.com/icons url = "mailto:mail@example.org" ``` +### Internationalisation (i18n) + +Tale supports using other languages than English. Language files for the texts Tale uses are provided in the `i18n` directory. The default language is English. To switch languages, add the key `defaultContentLanguage` to your `config.toml` file. For example: + +``` +defaultContentLanguage = "nl" +``` + +To translate texts your site uses, add an `i18n` folder to your site. + +Feel free to submit pull requests for other translations of Tale's texts. + +[Hugo documentation for multilingual sites](//gohugo.io/content-management/multilingual/) + ## Acknowledgments Stock portrait photo obtained [here](https://www.pexels.com/photo/adult-beautiful-blonde-blur-324658/). |