doc: improving multilingual instructions

This commit is contained in:
Cassio Batista 2019-06-12 11:37:28 -03:00
parent bdadd84af1
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
To allow Beautiful Hugo to go Multiliguagual you need to define the languages
you want to use inside the `languages` param on `config.toml` file:
To allow Beautiful Hugo to go multilingual you need to define the languages
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
[languages]
[languages.en]
contentDir = "content/en"
contentDir = "content/en" # English
[languages.ja]
contentDir = "content/ja"
contentDir = "content/ja" # Japanese
[languages.br]
contentDir = "content/pt"
contentDir = "content/br" # Brazilian Portuguese
```
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
dirs.
language and just put stuff inside `page/` and `post/` regular directory.
```
content/ content/ content/
└── en └── br └── ja