Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-i18n

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-i18n - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

10

lib/i18n.js

@@ -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 || {};

5

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc