Language variants

A multilingual string is composed of plain strings in different languages but with the same meaning. Each of these strings is called a language variant.

Each language variant is associated with a language identifier that indicates which language the variant is written in. Within a single multilingual string, each language variant must have a unique identifier.

The Translatable component does not impose any restrictions on the format of language identifiers, nor does it validate them against any pre-defined list. Therefore, any string can be used as a language identifier.

It is recommended to use language codes from the ISO 639 standard as language identifiers.