@paperbits/common
Advanced tools
Comparing version 0.1.571 to 0.1.572
@@ -131,3 +131,5 @@ import * as Arrays from "./arrays"; | ||
Integrity = "integrity", | ||
ContentEditable = "contentEditable" | ||
ContentEditable = "contentEditable", | ||
Language = "lang", | ||
Direction = "dir" | ||
} | ||
@@ -134,0 +136,0 @@ |
{ | ||
"name": "@paperbits/common", | ||
"version": "0.1.571", | ||
"version": "0.1.572", | ||
"description": "Paperbits common components.", | ||
@@ -5,0 +5,0 @@ "author": "Paperbits", |
@@ -92,8 +92,11 @@ import { MimeTypes } from "@paperbits/common"; | ||
if (page.locale) { | ||
document.documentElement.setAttribute("lang", page.locale.code.split("-")[0]); | ||
document.documentElement.setAttribute(Attributes.Language, page.locale.code.split("-")[0]); | ||
if (page.locale.direction) { | ||
document.documentElement.setAttribute("dir", page.locale.direction); | ||
document.documentElement.setAttribute(Attributes.Direction, page.locale.direction); | ||
} | ||
} | ||
else { | ||
document.documentElement.setAttribute(Attributes.Language, "en"); // TODO: quick hack | ||
} | ||
@@ -100,0 +103,0 @@ page.styleReferences.forEach(reference => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
434064
10908