Skip to content

Commit

Permalink
docs: update documentations (#977)
Browse files Browse the repository at this point in the history
docs: reworded one line to avoid possible confusions

docs: added small description to defaultContentLanguage

docs: added clarification on defaultContentLanguage parameter

docs: added another line encouraging people to add their own translation file to the GitHub repository.

docs: added Spanish to the language list
  • Loading branch information
JuanJesusAlejoSillero authored Sep 20, 2023
1 parent 9ae2590 commit 41ffa9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions exampleSite/content/docs/configuration/multilangual/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ images = []
navWeight = 960
+++

HBS supports multiple languages out of box, such as English, Simplified Chinese, Traditional Chinese, French, Russian etc.
HBS supports multiple languages out of box, such as English, Simplified Chinese, Traditional Chinese, French, Russian, etc.

You can add your own translations on: [hugo-theme-bootstrap/i18n](https://github.com/razonyang/hugo-theme-bootstrap/tree/master/i18n)

<!--more-->

Expand All @@ -33,7 +35,9 @@ HBS supports multiple languages out of box, such as English, Simplified Chinese,

> You'll need to specify the `languageDirection` as `rtl` for Right-to-left writing languages.
See also [Hugo Multilingual](https://gohugo.io/content-management/multilingual/).
See also [Hugo Multilingual](https://gohugo.io/content-management/multilingual/).*

> The parameter that controls the default language of the site must be located in the site configuration file. See `defaultContentLanguage` on [Site Configuration](https://hbs.razonyang.com/v1/en/docs/configuration/site/).
## Localization

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/docs/configuration/site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ The site configuration is located in `config/_default/config.toml` by default.
|---|:-:|:-:|---
| `title` | String | - | Site title.
| `baseURL` | String | - | Site base URL.
| `copyright` | String | - | Site copyright. The `{year}` placeholder will be replaced with this year.
| `defaultContentLanguage` | String | `en` |
| `copyright` | String | - | Site copyright. The `{year}` placeholder will be replaced with the current year.
| `defaultContentLanguage` | String | `en` | Default site's language.
| `defaultContentLanguageInSubdir` | Boolean | `false` |
| `paginate` | Integer | `10` |
| `paginatePath` | String | `page` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
| English | `en` |
| Simplified Chinese | `zh-hans`(**Recommended**), `zh-cn` |
| Traditional Chinese | `zh-hant`(**Recommended**), `zh-tw`, `zh-hk` |
| Spanish | `es` |
| Arabic | `ar` |
| German | `de` |
| French | `fr` |
Expand Down

0 comments on commit 41ffa9a

Please sign in to comment.