Files

45 lines
1.2 KiB
ReStructuredText
Raw Permalink Normal View History

2016-09-18 12:53:25 +01:00
Localised Content
=================
The localised content data structure is a key-value string map.
.. describe:: text
**Required.** The CommonMark message content string.
2016-09-18 12:53:25 +01:00
.. describe:: lang
2025-06-11 17:34:56 +01:00
**Required.** The language that ``text`` is written in, given as an XPG-format
(a.k.a. POSIX-format) locale name of the form ``ll`` or ``ll_CC``, where
``ll`` is an ISO 639-1 language code and ``CC`` is an ISO 3166 country code.
For example,
2016-09-18 12:53:25 +01:00
2017-02-12 10:08:37 +00:00
==================== =====
Language Code
==================== =====
2021-04-03 13:32:49 +01:00
Bulgarian bg
Chinese (Simplified) zh_CN
Czech cs
2016-09-18 12:53:25 +01:00
Danish da
English en
Finnish fi
French fr
German de
2021-04-03 13:32:49 +01:00
Italian it
Japanese ja
2016-09-18 12:53:25 +01:00
Korean ko
Polish pl
2021-04-03 13:32:49 +01:00
Portuguese pt_PT
Portuguese (Brazil) pt_BR
2016-09-18 12:53:25 +01:00
Russian ru
Spanish es
2016-10-15 12:34:47 +01:00
Swedish sv
2022-01-07 02:22:40 -08:00
Ukrainian uk_UA
2017-02-12 10:08:37 +00:00
==================== =====
Equality
--------
Two localised content data structures are equal if all their fields are equal.
Field equality is case-sensitive.