How do I auto-detect the language of the user and set it to this language?
There are multiple ways to do this:
You may use i18next language detector, this will probably meet your requirements and will take 5 mins to leverage.
If you are looking for a more browser native solution, have a look at the navigator.language API. You could easily script something from there.
navigator.language
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How do I auto-detect the language of the user and set it to this language?
There are multiple ways to do this:
You may use i18next language detector, this will probably meet your requirements and will take 5 mins to leverage.
If you are looking for a more browser native solution, have a look at the
navigator.language
API. You could easily script something from there.