HTML lang attribute to auto-setLocale
Closed this issue · 2 comments
mendrinos commented
Why to manually enforce the default locale:
Example:
<script type="text/javascript"> Lang.setLocale('{{App::getLocale()}}'); </script>
While everyone has the locale defined as an html attribute: lang?
Example:
<html lang="el">
It would be great to automatically check the lang attribute of the html tag to preset the default locale.
antonkomarev commented
I suppose it's related to rmariuzzo/Laravel-JS-Localization#60
mendrinos commented
Correct