Added lang attribute to html tag.
This commit is contained in:
parent
940f7aa63b
commit
1e9a072a6e
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ class _i18nSingleton extends Spine.Module
|
||||||
locale = 'en'
|
locale = 'en'
|
||||||
@locale = locale
|
@locale = locale
|
||||||
|
|
||||||
|
# set lang attribute of html tag
|
||||||
|
$('html').prop( 'lang', locale.substr(0, 2) )
|
||||||
|
|
||||||
@map = {}
|
@map = {}
|
||||||
App.Ajax.request(
|
App.Ajax.request(
|
||||||
id: 'i18n-set-' + locale,
|
id: 'i18n-set-' + locale,
|
||||||
|
|
Loading…
Reference in a new issue