commonplace
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -260,6 +260,14 @@ var fs = require('fs'); | ||
var locale = match[1].split('_'); | ||
// `ES` should be `es`. | ||
locale[0] = locale[0].toLowerCase(); | ||
if (locale[1] && locale[1].length == 2) { | ||
// `pt-br` should be `pt-BR`. | ||
locale[1] = locale[1].toUpperCase(); | ||
} else { | ||
// `sr-latn` should be `sr-Latn`. | ||
locale[1] = locale[1][0].toUpperCase() + locale[1].substr(1).toLowerCase(); | ||
} | ||
locale[0] = locale[0].toLowerCase(); | ||
locale = locale.join('-'); | ||
@@ -266,0 +274,0 @@ process_file(filepath, locale, path.resolve(langpacks_path, locale + '.js')); |
{ | ||
"name": "commonplace", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git", |
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
852913
11285