From 1e9a072a6e258b5c4164b5dd01ff3d4141fc83ff Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 14 Aug 2013 17:25:46 +0200 Subject: [PATCH] Added lang attribute to html tag. --- app/assets/javascripts/app/lib/app_post/i18n.js.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee index 5f3fe4bc4..b19e5e23e 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.js.coffee @@ -99,6 +99,9 @@ class _i18nSingleton extends Spine.Module locale = 'en' @locale = locale + # set lang attribute of html tag + $('html').prop( 'lang', locale.substr(0, 2) ) + @map = {} App.Ajax.request( id: 'i18n-set-' + locale,