Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/hallo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-10-28 16:28:55 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-10-28 16:28:55 +0300
commit9fb7b4dc3deead3158da579eb489904099c96a36 (patch)
tree495794481f934e2ec5010bf0c3f94aeb722e6d11
parentc910418f1c98e1a98058526a7e2c112c1100f2d9 (diff)
Add section on internationalisation
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
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/).