We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ddcc8a commit 5ce4c68Copy full SHA for 5ce4c68
index.js
@@ -14,7 +14,7 @@ function currentLocale(){
14
}
15
16
function setCurrentLocale(sLocale){
17
- if (locales[sLocale])
+ if (locales.indexOf(sLocale)>=0)
18
locale=sLocale;
19
else{
20
let i=sLocale.indexOf('-');
package.json
@@ -5,7 +5,7 @@
5
],
6
"name": "mongoose-localize",
7
"description": "A module to convert mongoose model property to set of localized properties.",
8
- "version": "1.0.7",
+ "version": "1.0.8",
9
"keywords": [
10
"mongoose",
11
"localize",
0 commit comments