Permalink
Browse files

tuned __p

  • Loading branch information...
1 parent 90f9888 commit 2fab05589b1f8356518f4c20757b7f46143f1b95 @larafale committed Sep 21, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/node-i18n.js
  2. +1 −1 package.json
View
1 lib/node-i18n.js
@@ -51,6 +51,7 @@ module.exports = function (options) {
return function(path, forcedLocale) {
locale = forcedLocale || locale
if(locale === self.options.defaults) return path
+ if(/^\/[a-z]{2}$|^\/[a-z]{2}\/(.*)$/.test(path)) path = path.substring(3)
return '/' + locale + path
}
}
View
2 package.json
@@ -3,7 +3,7 @@
"description": "i18n for node with expressJS",
"main": "./index",
"author": "Larafale & silently",
- "version": "0.0.11",
+ "version": "0.0.12",
"repository": {
"type": "git",
"url": "http://github.com/larafale/node-i18n.git"

0 comments on commit 2fab055

Please sign in to comment.