From 7ffbe45d665c34048803bb21b8e3002c8b605e94 Mon Sep 17 00:00:00 2001 From: Emiel Hollander Date: Sun, 30 Sep 2018 11:39:38 +0200 Subject: Add i18n capabilities --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 76f4c1e..069e9b4 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ hugo server -t tale ### Additional information -For more information, read the official [setup guide]( https://gohugo.io/overview/installing/) of Hugo. +For more information, read the official [setup guide](https//gohugo.io/overview/installing/) of Hugo. ### Update the theme @@ -48,6 +48,22 @@ git submodule update --remote --rebase If you have cloned the theme, you can run `git pull` inside the theme folder. +## Configuration + +### 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 swith 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 Thanks -- cgit v1.2.3