@daeren/i18n
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -21,2 +21,3 @@ "use strict"; | ||
getLocalesNames() { return localesNames; }, | ||
getCurrentLocalOrAvailable() { return curLocale || localesNames[0] || ''; }, | ||
//---]> | ||
@@ -50,3 +51,3 @@ t(path, localeName, args) { | ||
//---]> | ||
return pathToExist.get(idx); | ||
return pathToExist.has(idx); | ||
}, | ||
@@ -53,0 +54,0 @@ //---]> |
@@ -30,2 +30,3 @@ const locales = {} as any; | ||
getLocalesNames(): string[] { return localesNames; }, | ||
getCurrentLocalOrAvailable(): string[] { return curLocale || localesNames[0] || ''; }, | ||
@@ -74,3 +75,3 @@ //---]> | ||
return pathToExist.get(idx); | ||
return pathToExist.has(idx); | ||
}, | ||
@@ -77,0 +78,0 @@ |
{ | ||
"name": "@daeren/i18n", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
7205
233