Skip to content

Commit 5ce4c68

Browse files
author
Sergey Dolin
committed
v 1.0.8 improve setCurrentLocale
1 parent 4ddcc8a commit 5ce4c68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function currentLocale(){
1414
}
1515

1616
function setCurrentLocale(sLocale){
17-
if (locales[sLocale])
17+
if (locales.indexOf(sLocale)>=0)
1818
locale=sLocale;
1919
else{
2020
let i=sLocale.indexOf('-');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"name": "mongoose-localize",
77
"description": "A module to convert mongoose model property to set of localized properties.",
8-
"version": "1.0.7",
8+
"version": "1.0.8",
99
"keywords": [
1010
"mongoose",
1111
"localize",

0 commit comments

Comments
 (0)