Skip to content

Commit

Permalink
📦 build(dist): generate dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Feb 25, 2020
1 parent 7d5a91f commit 9a25d6f
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 34 deletions.
17 changes: 9 additions & 8 deletions dist/vue-i18n.common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* vue-i18n v8.15.3
* (c) 2019 kazuya kawaguchi
* vue-i18n v8.15.4
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
Expand Down Expand Up @@ -1306,7 +1306,7 @@ VueI18n.prototype._getMessages = function _getMessages () { return this._vm.mess
VueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };
VueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };

VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values) {
VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {
if (!isNull(result)) { return result }
if (this._missing) {
var missingRet = this._missing.apply(null, [locale, key, vm, values]);
Expand All @@ -1324,7 +1324,7 @@ VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm,

if (this._formatFallbackMessages) {
var parsedArgs = parseArgs.apply(void 0, values);
return this._render(key, 'string', parsedArgs.params, key)
return this._render(key, interpolateMode, parsedArgs.params, key)
} else {
return key
}
Expand Down Expand Up @@ -1457,7 +1457,8 @@ VueI18n.prototype._link = function _link (
}
translated = this._warnDefault(
locale, linkPlaceholder, translated, host,
Array.isArray(values) ? values : [values]
Array.isArray(values) ? values : [values],
interpolateMode
);

if (this._modifiers.hasOwnProperty(formatterName)) {
Expand Down Expand Up @@ -1534,7 +1535,7 @@ VueI18n.prototype._t = function _t (key, _locale, messages, host) {
if (!this._root) { throw Error('unexpected error') }
return (ref = this._root).$t.apply(ref, [ key ].concat( values ))
} else {
return this._warnDefault(locale, key, ret, host, values)
return this._warnDefault(locale, key, ret, host, values, 'string')
}
};

Expand All @@ -1556,7 +1557,7 @@ VueI18n.prototype._i = function _i (key, locale, messages, host, values) {
if (!this._root) { throw Error('unexpected error') }
return this._root.$i18n.i(key, locale, values)
} else {
return this._warnDefault(locale, key, ret, host, [values])
return this._warnDefault(locale, key, ret, host, [values], 'raw')
}
};

Expand Down Expand Up @@ -1939,6 +1940,6 @@ Object.defineProperty(VueI18n, 'availabilities', {
});

VueI18n.install = install;
VueI18n.version = '8.15.3';
VueI18n.version = '8.15.4';

module.exports = VueI18n;
13 changes: 7 additions & 6 deletions dist/vue-i18n.esm.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ class VueI18n {
_getDateTimeFormats () { return this._vm.dateTimeFormats }
_getNumberFormats () { return this._vm.numberFormats }

_warnDefault (locale, key, result, vm, values) {
_warnDefault (locale, key, result, vm, values, interpolateMode) {
if (!isNull(result)) { return result }
if (this._missing) {
const missingRet = this._missing.apply(null, [locale, key, vm, values]);
Expand All @@ -1301,7 +1301,7 @@ class VueI18n {

if (this._formatFallbackMessages) {
const parsedArgs = parseArgs(...values);
return this._render(key, 'string', parsedArgs.params, key)
return this._render(key, interpolateMode, parsedArgs.params, key)
} else {
return key
}
Expand Down Expand Up @@ -1433,7 +1433,8 @@ class VueI18n {
}
translated = this._warnDefault(
locale, linkPlaceholder, translated, host,
Array.isArray(values) ? values : [values]
Array.isArray(values) ? values : [values],
interpolateMode
);

if (this._modifiers.hasOwnProperty(formatterName)) {
Expand Down Expand Up @@ -1506,7 +1507,7 @@ class VueI18n {
if (!this._root) { throw Error('unexpected error') }
return this._root.$t(key, ...values)
} else {
return this._warnDefault(locale, key, ret, host, values)
return this._warnDefault(locale, key, ret, host, values, 'string')
}
}

Expand All @@ -1524,7 +1525,7 @@ class VueI18n {
if (!this._root) { throw Error('unexpected error') }
return this._root.$i18n.i(key, locale, values)
} else {
return this._warnDefault(locale, key, ret, host, [values])
return this._warnDefault(locale, key, ret, host, [values], 'raw')
}
}

Expand Down Expand Up @@ -1888,6 +1889,6 @@ Object.defineProperty(VueI18n, 'availabilities', {
});

VueI18n.install = install;
VueI18n.version = '8.15.3';
VueI18n.version = '8.15.4';

export default VueI18n;
2 changes: 1 addition & 1 deletion dist/vue-i18n.esm.browser.min.js

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions dist/vue-i18n.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* vue-i18n v8.15.3
* (c) 2019 kazuya kawaguchi
* vue-i18n v8.15.4
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
/* */
Expand Down Expand Up @@ -1304,7 +1304,7 @@ VueI18n.prototype._getMessages = function _getMessages () { return this._vm.mess
VueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };
VueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };

VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values) {
VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {
if (!isNull(result)) { return result }
if (this._missing) {
var missingRet = this._missing.apply(null, [locale, key, vm, values]);
Expand All @@ -1322,7 +1322,7 @@ VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm,

if (this._formatFallbackMessages) {
var parsedArgs = parseArgs.apply(void 0, values);
return this._render(key, 'string', parsedArgs.params, key)
return this._render(key, interpolateMode, parsedArgs.params, key)
} else {
return key
}
Expand Down Expand Up @@ -1455,7 +1455,8 @@ VueI18n.prototype._link = function _link (
}
translated = this._warnDefault(
locale, linkPlaceholder, translated, host,
Array.isArray(values) ? values : [values]
Array.isArray(values) ? values : [values],
interpolateMode
);

if (this._modifiers.hasOwnProperty(formatterName)) {
Expand Down Expand Up @@ -1532,7 +1533,7 @@ VueI18n.prototype._t = function _t (key, _locale, messages, host) {
if (!this._root) { throw Error('unexpected error') }
return (ref = this._root).$t.apply(ref, [ key ].concat( values ))
} else {
return this._warnDefault(locale, key, ret, host, values)
return this._warnDefault(locale, key, ret, host, values, 'string')
}
};

Expand All @@ -1554,7 +1555,7 @@ VueI18n.prototype._i = function _i (key, locale, messages, host, values) {
if (!this._root) { throw Error('unexpected error') }
return this._root.$i18n.i(key, locale, values)
} else {
return this._warnDefault(locale, key, ret, host, [values])
return this._warnDefault(locale, key, ret, host, [values], 'raw')
}
};

Expand Down Expand Up @@ -1937,6 +1938,6 @@ Object.defineProperty(VueI18n, 'availabilities', {
});

VueI18n.install = install;
VueI18n.version = '8.15.3';
VueI18n.version = '8.15.4';

export default VueI18n;
17 changes: 9 additions & 8 deletions dist/vue-i18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* vue-i18n v8.15.3
* (c) 2019 kazuya kawaguchi
* vue-i18n v8.15.4
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
(function (global, factory) {
Expand Down Expand Up @@ -1310,7 +1310,7 @@
VueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };
VueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };

VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values) {
VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {
if (!isNull(result)) { return result }
if (this._missing) {
var missingRet = this._missing.apply(null, [locale, key, vm, values]);
Expand All @@ -1328,7 +1328,7 @@

if (this._formatFallbackMessages) {
var parsedArgs = parseArgs.apply(void 0, values);
return this._render(key, 'string', parsedArgs.params, key)
return this._render(key, interpolateMode, parsedArgs.params, key)
} else {
return key
}
Expand Down Expand Up @@ -1461,7 +1461,8 @@
}
translated = this._warnDefault(
locale, linkPlaceholder, translated, host,
Array.isArray(values) ? values : [values]
Array.isArray(values) ? values : [values],
interpolateMode
);

if (this._modifiers.hasOwnProperty(formatterName)) {
Expand Down Expand Up @@ -1538,7 +1539,7 @@
if (!this._root) { throw Error('unexpected error') }
return (ref = this._root).$t.apply(ref, [ key ].concat( values ))
} else {
return this._warnDefault(locale, key, ret, host, values)
return this._warnDefault(locale, key, ret, host, values, 'string')
}
};

Expand All @@ -1560,7 +1561,7 @@
if (!this._root) { throw Error('unexpected error') }
return this._root.$i18n.i(key, locale, values)
} else {
return this._warnDefault(locale, key, ret, host, [values])
return this._warnDefault(locale, key, ret, host, [values], 'raw')
}
};

Expand Down Expand Up @@ -1943,7 +1944,7 @@
});

VueI18n.install = install;
VueI18n.version = '8.15.3';
VueI18n.version = '8.15.4';

return VueI18n;

Expand Down
6 changes: 3 additions & 3 deletions dist/vue-i18n.min.js

Large diffs are not rendered by default.

0 comments on commit 9a25d6f

Please sign in to comment.