ultrabug / mkdocs-static-i18n

MkDocs i18n plugin using static translation markdown files
https://ultrabug.github.io/mkdocs-static-i18n/
MIT License
237 stars 38 forks source link

Disconnect between plugin and mkdocs-material language codes #193

Closed jonaharagon closed 1 year ago

jonaharagon commented 1 year ago

I don't know if this is an issue with this plugin or with mkdocs-material, but I'm running into issues with this plugin using different language codes than mkdocs-material expects.

For example, if I use five character language codes here like he_IL, mkdocs-material doesn't understand what he_IL is because it is expecting he, and so RTL directionality doesn't get set properly and mkdocs-material isn't localized.

On the other hand, if I try to use languages codes that mkdocs-material does understand, I run into issues with languages like Chinese (Traditional) which mkdocs-material expects to be zh-Hant, but this plugin considers zh-Hant to be invalid.