Skip to content

Commit

Permalink
version bumb, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mashpie committed Feb 15, 2016
1 parent 62927cb commit 7073812
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -146,6 +146,9 @@ i18n.configure({
// sets a custom cookie name to parse locale settings from - defaults to NULL
cookie: 'yourcookiename',

// query parameter to switch locale (ie. /home?lang=ch) - defaults to NULL
queryParameter: 'lang',

// where to store json files - defaults to './locales' relative to modules directory
directory: './mylocales',

Expand Down Expand Up @@ -724,7 +727,14 @@ __("greeting.placeholder.informal:Hi %s")
## Changelog
* 0.6.0: __improved__: Accept-Language header parsing to ICU, delimiters with object notation, jshint, package.json, README; __new__: prefix for locale files, `i18n.getLocales()`, custom logger, fallback[s]; __fixed__: typos, badges, plural (numbers), `i18n.setLocale()` for `req` _and_ `res`
* 0.7.0:
* __improved__: `i18n.setLocale()` and `i18n.init()` refactored to comply with most common use cases, much better test coverage and docs
* __new__: options: `autoReload`, `directoryPermissions`, `register`, `queryParameter`, read locales from filenames with empty `locales` option (#134)
* __fixed__: typos, missing and wrong docs, issues related to `i18n.setLocale()`
* 0.6.0:
* __improved__: Accept-Language header parsing to ICU, delimiters with object notation, jshint, package.json, README;
* __new__: prefix for locale files, `i18n.getLocales()`, custom logger, fallback[s];
* __fixed__: typos, badges, plural (numbers), `i18n.setLocale()` for `req` _and_ `res`
* 0.5.0: feature release; added {{mustache}} parsing by #85, added "object.notation" by #110, fixed buggy req.__() implementation by #111 and closed 13 issues
* 0.4.1: stable release; merged/closed: #57, #60, #67 typo fixes; added more examples and new features: #53, #65, #66 - and some more api reference
* 0.4.0: stable release; closed: #22, #24, #4, #10, #54; added examples, clarified concurrency usage in different template engines, added `i18n.getCatalog`
Expand Down
4 changes: 2 additions & 2 deletions i18n.js
Expand Up @@ -3,7 +3,7 @@
* @link https://github.com/mashpie/i18n-node
* @license http://opensource.org/licenses/MIT
*
* @version 0.6.0
* @version 0.7.0
*/

// dependencies and "private" vars
Expand Down Expand Up @@ -49,7 +49,7 @@ var vsprintf = require('sprintf-js').vsprintf,
// public exports
var i18n = exports;

i18n.version = '0.6.0';
i18n.version = '0.7.0';

i18n.configure = function i18nConfigure(opt) {

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "i18n",
"description": "lightweight translation module with dynamic json storage",
"version": "0.6.0",
"version": "0.7.0",
"homepage": "http://github.com/mashpie/i18n-node",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/i18n.setup.js
Expand Up @@ -12,7 +12,7 @@ i18n.configure({

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

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

0 comments on commit 7073812

Please sign in to comment.