doc: improving multilingual instructions

This commit is contained in:
Cassio Batista 2019-06-12 11:37:28 -03:00
commit 2fb2386076

View file

@ -124,22 +124,23 @@ See at [xor-gate/xor-gate.org](https://github.com/xor-gate/xor-gate.org) an exam
### Multilingual ### Multilingual
To allow Beautiful Hugo to go Multiliguagual you need to define the languages To allow Beautiful Hugo to go multilingual you need to define the languages
you want to use inside the `languages` param on `config.toml` file: you want to use inside the `languages` parameter on `config.toml` file, also
redefining the content dir for each one. Check the `i18n/` folder to see all
languages available.
```toml ```toml
[languages] [languages]
[languages.en] [languages.en]
contentDir = "content/en" contentDir = "content/en" # English
[languages.ja] [languages.ja]
contentDir = "content/ja" contentDir = "content/ja" # Japanese
[languages.br] [languages.br]
contentDir = "content/pt" contentDir = "content/br" # Brazilian Portuguese
``` ```
Now you just need to create a subdir within the `content/` folder for each Now you just need to create a subdir within the `content/` folder for each
language you want to use and just put stuff inside `page/` and `post/` regular language and just put stuff inside `page/` and `post/` regular directory.
dirs.
``` ```
content/ content/ content/ content/ content/ content/
└── en └── br └── ja └── en └── br └── ja