From 9fb7b4dc3deead3158da579eb489904099c96a36 Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Sun, 28 Oct 2018 14:28:55 +0100 Subject: Add section on internationalisation --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 74785e7..aa3259d 100644 --- a/README.md +++ b/README.md @@ -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/). -- cgit v1.2.3