Module lang

Source
Expand description

Tools for languages and language detection

Modules§

translate
Translation for multiple languages

Enums§

Language
A language supported by mcvm. Includes all languages in Minecraft.

Functions§

canonicalize_locale
Canonicalize a language tag
extract_locale_first_part
Extract the first part, the language, from the language tag. Should be canonicalized first to use an underscore
extract_locale_language
Extract a Language value from a locale. Not all locales and languages are supported
strip_locale
Strip extensions and other stuff from an IETF language tag