diff --git a/exampleSite/content/docs/configuration/multilangual/index.md b/exampleSite/content/docs/configuration/multilangual/index.md index ba7c9d4c9..f66987103 100644 --- a/exampleSite/content/docs/configuration/multilangual/index.md +++ b/exampleSite/content/docs/configuration/multilangual/index.md @@ -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) @@ -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 diff --git a/exampleSite/content/docs/configuration/site/index.md b/exampleSite/content/docs/configuration/site/index.md index 4cdb52877..867c94957 100644 --- a/exampleSite/content/docs/configuration/site/index.md +++ b/exampleSite/content/docs/configuration/site/index.md @@ -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` | diff --git a/exampleSite/layouts/shortcodes/code/multilingual-languages.html b/exampleSite/layouts/shortcodes/code/multilingual-languages.html index 146531267..fae6f6583 100644 --- a/exampleSite/layouts/shortcodes/code/multilingual-languages.html +++ b/exampleSite/layouts/shortcodes/code/multilingual-languages.html @@ -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` |