Added lang attribute to html tag.

This commit is contained in:
Martin Edenhofer 2013-08-14 17:25:46 +02:00
parent 940f7aa63b
commit 1e9a072a6e

View file

@ -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,