Skip to content

Commit

Permalink
locale attribute: metanorma/bipm-si-brochure#191
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis authored and ronaldtse committed Sep 26, 2022
1 parent 077a16f commit 2155c08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions author/ref/document-attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Two-letter code (ISO 639-1) of the language the document is written in. Defaults
The script of the document (ISO 15924). Defaults to `Latn`. Must be supplied as
`Hans` for Simplified Chinese.

`:locale:`::
The locale of the document (currently expected to be a two-letter country code,
ISO 3166-1 alpha-2). [added in /~https://github.com/metanorma/metanorma-standoc/releases/tag/2.2.4]

`:boilerplate-authority:`::
File containing predefined text of document, in Metanorma XML. The document
predefined text needs to follow the structure described in
Expand Down
3 changes: 3 additions & 0 deletions author/topics/languages.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ The language of the document is specified in following link:/author/ref/document
* `:language:` — ISO 639-2 two-letter language code. Defaults to `en`.
* `:script:` — ISO 15924 script code (for languages with more than one script).
Defaults to `Latn`. e.g., specify `Hant` for Traditional Chinese.
* `:locale:` – ISO 3166-1 two-letter country code [added in /~https://github.com/metanorma/metanorma-standoc/releases/tag/v2.2.4].
As of this writing, the impact of locale in localisation is minor: narrow non-breaking space in front of colon for templated
localised text (e.g. cross-references) in Swiss French, vs full non-breaking space for other locales of French.
* `:i18nyaml:` — language template file. Only needed if you're using a language other than
English, Chinese (Simplified) or French.

Expand Down

0 comments on commit 2155c08

Please sign in to comment.