ultrabug / mkdocs-static-i18n

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

[Enhancement] Language detector based on user region #235

Closed MetalKnight56 closed 10 months ago

MetalKnight56 commented 1 year ago

So i was wondering if there was a way for you to implement dynamic localization detection, so if a user is lets say, in japan the plugin will detect their region and check if the wiki has available japanese translations. So instead of the user having to change their language each time, the plugin does that work for them, also allowing ppl that don't have that much knowledge on how these things work to notice that there are indeed translations for them.

ultrabug commented 11 months ago

Hello @MetalKnight56 ; I guess that's something an external JS library could do and I'm not sure that's this plugin should take that kind of responsibility tbh since we're about providing content localization capabilities.

Maybe ask this question to the theme you're using or simply find an external JS lib that could do that for you?