@enact/i18n
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [3.3.1] - 2020-07-20 | ||
No significant changes. | ||
## [3.3.0] - 2020-07-13 | ||
@@ -7,0 +11,0 @@ |
@@ -59,3 +59,3 @@ "use strict"; | ||
function (done) { | ||
return (0, _locale.isNonLatinLocale)(locale, _objectSpread({}, rest, { | ||
return (0, _locale.isNonLatinLocale)(locale, _objectSpread(_objectSpread({}, rest), {}, { | ||
latinLanguageOverrides: latinLanguageOverrides, | ||
@@ -69,3 +69,3 @@ nonLatinLanguageOverrides: nonLatinLanguageOverrides, | ||
function (done) { | ||
return (0, _locale.isRtlLocale)(_objectSpread({}, rest, { | ||
return (0, _locale.isRtlLocale)(_objectSpread(_objectSpread({}, rest), {}, { | ||
onLoad: function onLoad(isRtl) { | ||
@@ -131,3 +131,3 @@ return done(isRtl ? base + 'right-to-left' : ''); | ||
onLoad: function onLoad(li) { | ||
return getClassesForLocale(li, _objectSpread({}, options, { | ||
return getClassesForLocale(li, _objectSpread(_objectSpread({}, options), {}, { | ||
onLoad: _onLoad | ||
@@ -134,0 +134,0 @@ })); |
@@ -34,3 +34,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -191,3 +191,3 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } | ||
var rtl = (0, _wrapIlibCallback["default"])(_locale.isRtlLocale, options); | ||
var className = (0, _wrapIlibCallback["default"])(_getI18nClasses["default"], _objectSpread({}, options, { | ||
var className = (0, _wrapIlibCallback["default"])(_getI18nClasses["default"], _objectSpread(_objectSpread({}, options), {}, { | ||
latinLanguageOverrides: this.latinLanguageOverrides, | ||
@@ -194,0 +194,0 @@ nonLatinLanguageOverrides: this.nonLatinLanguageOverrides |
@@ -17,3 +17,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -20,0 +20,0 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
@@ -29,3 +29,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -102,3 +102,3 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
return _objectSpread({}, state, { | ||
return _objectSpread(_objectSpread({}, state), {}, { | ||
updateLocale: i18n.updateLocale | ||
@@ -105,0 +105,0 @@ }); |
@@ -58,3 +58,3 @@ "use strict"; | ||
new _LocaleInfo["default"](spec, _objectSpread({}, rest, { | ||
new _LocaleInfo["default"](spec, _objectSpread(_objectSpread({}, rest), {}, { | ||
onLoad: function onLoad(li) { | ||
@@ -84,3 +84,3 @@ var locale = li.getLocale(); | ||
new _LocaleInfo["default"](_ilib["default"].getLocale(), _objectSpread({}, options, { | ||
new _LocaleInfo["default"](_ilib["default"].getLocale(), _objectSpread(_objectSpread({}, options), {}, { | ||
onLoad: function onLoad(li) { | ||
@@ -87,0 +87,0 @@ var scriptName = li.getScript(); // eslint-disable-next-line no-new |
{ | ||
"name": "@enact/i18n", | ||
"main": "./src/index.js", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Internationalization support for Enact using iLib", | ||
@@ -47,3 +47,3 @@ "scripts": { | ||
"dependencies": { | ||
"@enact/core": "^3.3.0", | ||
"@enact/core": "^3.3.1", | ||
"prop-types": "^15.7.2", | ||
@@ -50,0 +50,0 @@ "ramda": "^0.24.1", |
@@ -55,3 +55,3 @@ "use strict"; | ||
new _ResBundle["default"](_objectSpread({}, opts, { | ||
new _ResBundle["default"](_objectSpread(_objectSpread({}, opts), {}, { | ||
onLoad: function onLoad(bundle) { | ||
@@ -58,0 +58,0 @@ opts.onLoad(bundle || null); |
@@ -16,3 +16,3 @@ "use strict"; | ||
var _onLoad = options.onLoad; | ||
fn(_objectSpread({}, options, { | ||
fn(_objectSpread(_objectSpread({}, options), {}, { | ||
onLoad: function onLoad(result) { | ||
@@ -19,0 +19,0 @@ callback(result); |
@@ -36,3 +36,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -51,4 +51,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -62,6 +66,2 @@ | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function getTextMap(mapPropsToText, props) { | ||
@@ -68,0 +68,0 @@ var children = props.children, |
141788
Updated@enact/core@^3.3.1