@snack-uikit/locale 0.15.5 → 0.15.6-preview-0aba136f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/LocaleProvider/LocaleProvider.js +2 -2
- package/dist/cjs/locales/en_GB.d.ts +1 -0
- package/dist/cjs/locales/en_GB.js +1 -0
- package/dist/cjs/locales/index.d.ts +2 -0
- package/dist/cjs/locales/ru_RU.js +1 -0
- package/dist/esm/locales/en_GB.d.ts +1 -0
- package/dist/esm/locales/en_GB.js +1 -0
- package/dist/esm/locales/index.d.ts +2 -0
- package/dist/esm/locales/ru_RU.js +1 -0
- package/package.json +2 -2
- package/src/locales/en_GB.ts +1 -0
- package/src/locales/ru_RU.ts +1 -0
|
@@ -47,7 +47,7 @@ function createLocaleContext(_ref) {
|
|
|
47
47
|
const localesByLang = (0, react_1.useMemo)(() => {
|
|
48
48
|
let localesObj = locales[lang];
|
|
49
49
|
if (!localesObj) {
|
|
50
|
-
console.warn(
|
|
50
|
+
console.warn("Snack-uikit: localization for lang ".concat(lang, " was not found. Make sure you are using correct lang or passed proper locales to LocaleProvider. For now default language (").concat(exports.DEFAULT_LANG, ") will be used"));
|
|
51
51
|
localesObj = locales[fallbackLang];
|
|
52
52
|
}
|
|
53
53
|
return localesObj;
|
|
@@ -86,7 +86,7 @@ function createLocaleContext(_ref) {
|
|
|
86
86
|
}, locales);
|
|
87
87
|
}
|
|
88
88
|
if (!(translation === null || translation === void 0 ? void 0 : translation.length)) {
|
|
89
|
-
console.warn(
|
|
89
|
+
console.warn("Snack-uikit: the '".concat(key, "' key is not found in the current locale '").concat(lang, "'."));
|
|
90
90
|
return key;
|
|
91
91
|
}
|
|
92
92
|
return (0, interpolateTranslation_1.interpolateTranslation)(translation, interpolation);
|
|
@@ -60,6 +60,7 @@ export declare const LOCALES: {
|
|
|
60
60
|
};
|
|
61
61
|
Calendar: {
|
|
62
62
|
current: string;
|
|
63
|
+
apply: string;
|
|
63
64
|
time: string;
|
|
64
65
|
presets: string;
|
|
65
66
|
defaultPresets: {
|
|
@@ -147,6 +148,7 @@ export declare const LOCALES: {
|
|
|
147
148
|
};
|
|
148
149
|
Calendar: {
|
|
149
150
|
current: string;
|
|
151
|
+
apply: string;
|
|
150
152
|
time: string;
|
|
151
153
|
presets: string;
|
|
152
154
|
defaultPresets: {
|
|
@@ -60,6 +60,7 @@ export declare const LOCALES: {
|
|
|
60
60
|
};
|
|
61
61
|
Calendar: {
|
|
62
62
|
current: string;
|
|
63
|
+
apply: string;
|
|
63
64
|
time: string;
|
|
64
65
|
presets: string;
|
|
65
66
|
defaultPresets: {
|
|
@@ -147,6 +148,7 @@ export declare const LOCALES: {
|
|
|
147
148
|
};
|
|
148
149
|
Calendar: {
|
|
149
150
|
current: string;
|
|
151
|
+
apply: string;
|
|
150
152
|
time: string;
|
|
151
153
|
presets: string;
|
|
152
154
|
defaultPresets: {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Locale",
|
|
7
|
-
"version": "0.15.
|
|
7
|
+
"version": "0.15.6-preview-0aba136f.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/lodash.merge": "4.6.9"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a2db41da4366417b6ff322f3a1ba73da8ba96222"
|
|
45
45
|
}
|
package/src/locales/en_GB.ts
CHANGED