Permalink
Browse files

bump version

  • Loading branch information...
1 parent a6dd691 commit b17c5d891900fdd5cd2a69f639808092bfee59a5 @naholyr committed Jun 18, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −2 index.js
  2. +1 −1 package.json
View
@@ -167,14 +167,15 @@ exports.plural = function plural(msg, number, params, locale, catalogue) {
this.pluralHandler.debug = true;
}
- if (typeof params == 'string' && typeof locale == 'undefined'){
+ if (typeof params === 'string' && typeof locale === 'undefined') {
locale = params;
params = {};
}
- if (!params){
+ if (!params) {
params = {};
}
+
// Translate (only if all information provided, and no plural in store) ?
if (!this.store.plural && (typeof params != 'undefined' || typeof locale != 'undefined' || typeof catalogue != 'undefined')) {
msg = this.translate(msg, params, locale, catalogue);
View
@@ -2,7 +2,7 @@
"author": "Nicolas Chambrier <naholyr@gmail.com> (http://naholyr.fr)",
"name": "jus-i18n",
"description": "Real I18N implementation, with a true support for plural forms, and many storage engines. Works best with Express or Jus Framework",
- "version": "0.1.1",
+ "version": "0.1.2",
"homepage": "https://github.com/naholyr/node-i18n",
"repository": {
"type": "git",

0 comments on commit b17c5d8

Please sign in to comment.