diff --git a/core/modules/startup/startup.js b/core/modules/startup/startup.js index e09f6393f..dcfcac48a 100755 --- a/core/modules/startup/startup.js +++ b/core/modules/startup/startup.js @@ -88,6 +88,7 @@ exports.startup = function() { if($tw.browser) { var pluginTiddler = $tw.wiki.getTiddler(plugins[0]); if(pluginTiddler) { + document.documentElement.setAttribute("lang",pluginTiddler.getFieldString("name")); document.documentElement.setAttribute("dir",pluginTiddler.getFieldString("text-direction") || "auto"); } else { document.documentElement.removeAttribute("dir");