Hi @astralinternet
Thank you very much for your suggestion!
A user on GitHub, Sapper-Morton, suggested a very similar idea: offering an option to determine the language using the HTML lang
attribute. The problem with such a solution is that we must implement it in every plugin and integration.
It’s the same with your suggestion. Of course, it’s possible, but it can be complicated based on the number of multilanguage plugins. Additionally, we should do it for all our plugins and integrations.
But, based on the suggestion from Sapper-Morton, we had an idea to implement the HTML lang
directly in the mosparo logic. We suggest always sending the HTML lang
attribute to the mosparo API and adding an option in mosparo with which the project owner can choose between the source of the language (Browser or HTML tag lang
). You can read the whole idea here:?https://github.com/orgs/mosparo/discussions/230#discussioncomment-9441541
With this solution, we can add this more flexible option very easily and for all integrations simultaneously.
Please let us know what you think about this solution.
Kind regards,
zepich / mosparo Team