Skip to content

Add support for ISO 639-2 and ISO 639-3 codes #339

@figure002

Description

@figure002

The following language is rejected by mkdocs-static-i18n:

plugins:
  - i18n:
      languages:
        - locale: ast
          name: "Asturianu"
          build: true

It responds with an error:

ERROR - Config value 'plugins': Plugin 'i18n' option 'languages': Sub-option 'locale': Language code values must be either ISO-639-1 lower case or represented with their territory/region/country codes, received 'ast' expected forms examples: 'en' or 'en-US' or 'en_US'.

But there exists no ISO 639-1 code for Asturian; there are only ISO 639-2 and ISO 639-3 codes, see https://en.wikipedia.org/wiki/Asturian_language.

Would it be possible to add support for ISO 639-2 and ISO 639-3 codes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions