Browser Language Detection

PHP (Laravel):

Javascript:

jscookie plugin:

https://github.com/js-cookie/js-cookie