doc: improving multilingual instructions
This commit is contained in:
parent
bdadd84af1
commit
2fb2386076
1 changed files with 8 additions and 7 deletions
15
README.md
15
README.md
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue