Comparing version 0.1.0 to 0.2.0
@@ -48,2 +48,4 @@ var vsprintf = require('sprintf-js').vsprintf; | ||
this.data[lang] = flattenObject(data); | ||
return this; | ||
}; | ||
@@ -54,5 +56,11 @@ | ||
this.data[lang] = null; | ||
delete this.data[lang]; | ||
return this; | ||
}; | ||
i18n.prototype.list = function(){ | ||
return Object.keys(this.data); | ||
}; | ||
function flattenObject(data, obj, parent){ | ||
@@ -59,0 +67,0 @@ obj = obj || {}; |
{ | ||
"name": "hexo-i18n", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "i18n module for Hexo.", | ||
@@ -19,3 +19,4 @@ "main": "lib/i18n", | ||
"hexo", | ||
"i18n" | ||
"i18n", | ||
"localization" | ||
], | ||
@@ -22,0 +23,0 @@ "author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)", |
@@ -78,2 +78,6 @@ # i18n | ||
### i18n.list() | ||
Lists loaded languages. | ||
### i18n.__() → Function(key, arg...) | ||
@@ -80,0 +84,0 @@ |
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
6902
101
100