update to state of the art
This commit is contained in:
24
node_modules/i18next/i18next.js
generated
vendored
24
node_modules/i18next/i18next.js
generated
vendored
@@ -827,7 +827,7 @@
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
if (lastKey && lastKey[0] === args[0]) {
|
||||
if (lastKey && lastKey[0] === args[0] && !options.context) {
|
||||
_this3.logger.warn("It seems you are nesting recursively key: ".concat(args[0], " in key: ").concat(key[0]));
|
||||
|
||||
return null;
|
||||
@@ -1044,6 +1044,7 @@
|
||||
key: "getFallbackCodes",
|
||||
value: function getFallbackCodes(fallbacks, code) {
|
||||
if (!fallbacks) return [];
|
||||
if (typeof fallbacks === 'function') fallbacks = fallbacks(code);
|
||||
if (typeof fallbacks === 'string') fallbacks = [fallbacks];
|
||||
if (Object.prototype.toString.apply(fallbacks) === '[object Array]') return fallbacks;
|
||||
if (!code) return fallbacks["default"] || [];
|
||||
@@ -1099,7 +1100,7 @@
|
||||
nr: [1, 2],
|
||||
fc: 2
|
||||
}, {
|
||||
lngs: ['ay', 'bo', 'cgg', 'fa', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],
|
||||
lngs: ['ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],
|
||||
nr: [1],
|
||||
fc: 3
|
||||
}, {
|
||||
@@ -1179,7 +1180,7 @@
|
||||
nr: [5, 1, 2, 3],
|
||||
fc: 21
|
||||
}, {
|
||||
lngs: ['he'],
|
||||
lngs: ['he', 'iw'],
|
||||
nr: [1, 2, 20, 21],
|
||||
fc: 22
|
||||
}];
|
||||
@@ -2000,11 +2001,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
if (!this.modules.languageDetector && !this.options.lng) {
|
||||
if (!this.services.languageDetector && !this.options.lng) {
|
||||
this.logger.warn('init: no languageDetector is used and no lng is defined');
|
||||
}
|
||||
|
||||
var storeApi = ['getResource', 'addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
|
||||
var storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
|
||||
storeApi.forEach(function (fcName) {
|
||||
_this2[fcName] = function () {
|
||||
var _this2$store;
|
||||
@@ -2012,13 +2013,22 @@
|
||||
return (_this2$store = _this2.store)[fcName].apply(_this2$store, arguments);
|
||||
};
|
||||
});
|
||||
var storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];
|
||||
storeApiChained.forEach(function (fcName) {
|
||||
_this2[fcName] = function () {
|
||||
var _this2$store2;
|
||||
|
||||
(_this2$store2 = _this2.store)[fcName].apply(_this2$store2, arguments);
|
||||
|
||||
return _this2;
|
||||
};
|
||||
});
|
||||
var deferred = defer();
|
||||
|
||||
var load = function load() {
|
||||
_this2.changeLanguage(_this2.options.lng, function (err, t) {
|
||||
_this2.isInitialized = true;
|
||||
|
||||
_this2.logger.log('initialized', _this2.options);
|
||||
if (!_this2.options.isClone) _this2.logger.log('initialized', _this2.options);
|
||||
|
||||
_this2.emit('initialized', _this2.options);
|
||||
|
||||
|
Reference in New Issue
Block a user