Use ISO 639-1 code for examples

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
Takuya Noguchi authored and Kaushal Modi committed 2018-09-25 03:20:21 -04:00
1 parent 9a9e40ba83
commit 7c0b5b7f56
3 files changed
+4 -4

No files matched your search

@@ -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:
+1 -1
View File
@@ -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: