i18n compliance with IETF BCP 47
Context
The i18n translation system uses language data from the assets/voxygen/i18n
directory. It contains a subdirectory for each translated language. In turn, each of these subdirectories contains a _manifest.ron
file with important translation metadata.
Requirement(s)
The following values must be valid IETF BCP 47 (RFC5646) language tags:
- The directory name of the translated language.
- The value of the
language_identifier
key in the_manifest.ron
file.
Example(s)
The following structure and data are valid and used by the Ukrainian translation:
- Directory name:
uk
. - Snippet of
assets/voxygen/i18n/uk/_manifest.ron
:
metadata: (
language_name: "Українська (Ukrainian)",
language_identifier: "uk",
),
See also
- Make i18n language identifiers comply with IETF... (!3964 - merged)
- https://www.rfc-editor.org/bcp/bcp47.txt
- https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
- https://www.w3.org/International/articles/language-tags/
- https://www.w3.org/International/questions/qa-choosing-language-tags
Edited by Javier Pérez