Comparing version 1.7.0 to 1.7.2
@@ -1,2 +0,2 @@ | ||
import * as warning from 'warning'; | ||
import warning from 'warning'; | ||
var defaultLocale = 'ru-ru'; | ||
@@ -13,3 +13,5 @@ var Intl = /** @class */ (function () { | ||
} | ||
Intl.currentLocale = defaultLocale; | ||
else { | ||
Intl.currentLocale = defaultLocale; | ||
} | ||
return Intl.currentLocale; | ||
@@ -91,5 +93,7 @@ }; | ||
export { Intl }; | ||
Intl.setLocale(window.navigator.language); | ||
if ((window !== undefined) && (window['navigator'])) { | ||
Intl.setLocale(window.navigator.language); | ||
} | ||
export var _ = Intl.t; | ||
export var __ = Intl.ts; | ||
//# sourceMappingURL=Intl.js.map |
{ | ||
"name": "onix-core", | ||
"version": "1.7.0", | ||
"version": "1.7.2", | ||
"description": "Onix library core", | ||
@@ -31,3 +31,4 @@ "main": "dist/index.js", | ||
"@types/lodash-es": "^4.17.3", | ||
"@types/node": "^7.10.9", | ||
"@types/node": "^13.9.0", | ||
"@types/warning": "^3.0.0", | ||
"chai": "^4.2.0", | ||
@@ -34,0 +35,0 @@ "clean-webpack-plugin": "^3.0.0", |
@@ -1,2 +0,2 @@ | ||
import * as warning from 'warning'; | ||
import warning from 'warning'; | ||
@@ -28,6 +28,6 @@ declare type Locales = 'ru-ru' | 'en-us'; | ||
Intl.currentLocale = 'en-us'; | ||
} else { | ||
Intl.currentLocale = defaultLocale; | ||
} | ||
Intl.currentLocale = defaultLocale; | ||
return Intl.currentLocale; | ||
@@ -126,5 +126,7 @@ }; | ||
Intl.setLocale(window.navigator.language); | ||
if ((window !== undefined) && (window['navigator'])) { | ||
Intl.setLocale(window.navigator.language); | ||
} | ||
export const _ = Intl.t; | ||
export const __ = Intl.ts; |
Sorry, the diff of this file is not supported yet
1726
93143
11
119