Skip to content

Commit

Permalink
Merge tag '0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mashpie committed Apr 17, 2020
2 parents 87c620c + ca9e435 commit 40ffb15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

// dependencies
var vsprintf = require('sprintf-js').vsprintf,
pkgVersion = require('./package.json').version,
fs = require('fs'),
url = require('url'),
path = require('path'),
Expand All @@ -19,7 +20,6 @@ var vsprintf = require('sprintf-js').vsprintf,
MakePlural = require('make-plural'),
parseInterval = require('math-interval-parser').default;


// exports an instance
module.exports = (function() {

Expand Down Expand Up @@ -62,7 +62,7 @@ module.exports = (function() {
// public exports
var i18n = {};

i18n.version = '0.8.3';
i18n.version = pkgVersion;

i18n.configure = function i18nConfigure(opt) {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "i18n",
"description": "lightweight translation module with dynamic json storage",
"version": "0.8.6",
"version": "0.9.0",
"homepage": "http://github.com/mashpie/i18n-node",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion test/i18n.setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var i18n = require('../i18n'),
pkgVersion = require('../package.json').version,
should = require("should");

i18n.configure({
Expand All @@ -10,7 +11,7 @@ i18n.configure({

describe('Module Setup', function () {
it('should export a valid version', function () {
should.equal(i18n.version, '0.8.3');
should.equal(i18n.version, pkgVersion);
});

it('should export configure as i18nConfigure', function () {
Expand Down

0 comments on commit 40ffb15

Please sign in to comment.