mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 17:55:16 -04:00
Use ISO 639-1 code for examples
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
parent
9a9e40ba83
commit
7c0b5b7f56
@ -42,7 +42,7 @@ You will get an error if you document could not be uniquely resolved. The error
|
|||||||
Link to another language version of a document, you need to use this syntax:
|
Link to another language version of a document, you need to use this syntax:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{</* relref path="document.md" lang="jp" */>}}
|
{{</* relref path="document.md" lang="ja" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Get another Output Format
|
### Get another Output Format
|
||||||
|
@ -67,7 +67,7 @@ Only the obvious non-global options can be overridden per language. Examples of
|
|||||||
You can disable one or more languages. This can be useful when working on a new translation.
|
You can disable one or more languages. This can be useful when working on a new translation.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
disableLanguages = ["fr", "jp"]
|
disableLanguages = ["fr", "ja"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that you cannot disable the default content language.
|
Note that you cannot disable the default content language.
|
||||||
@ -75,7 +75,7 @@ Note that you cannot disable the default content language.
|
|||||||
We kept this as a standalone setting to make it easier to set via [OS environment](/getting-started/configuration/#configure-with-environment-variables):
|
We kept this as a standalone setting to make it easier to set via [OS environment](/getting-started/configuration/#configure-with-environment-variables):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
HUGO_DISABLELANGUAGES="fr jp" hugo
|
HUGO_DISABLELANGUAGES="fr ja" hugo
|
||||||
```
|
```
|
||||||
If you have already a list of disabled languages in `config.toml`, you can enable them in development like this:
|
If you have already a list of disabled languages in `config.toml`, you can enable them in development like this:
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ You can also use the `..` to refer to a page one level up etc.:
|
|||||||
We have now also added language support to `ref` and `relref`, so you can link to a page in another language:
|
We have now also added language support to `ref` and `relref`, so you can link to a page in another language:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{</* relref path="document.md" lang="jp" */>}}
|
{{</* relref path="document.md" lang="ja" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
To link to a given Output Format of a document, you can use this syntax:
|
To link to a given Output Format of a document, you can use this syntax:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user