Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,10 @@ | ||
<a name="2.3.1"></a> | ||
## [2.3.1](https://github.com/kazupon/vue-i18n/compare/v2.3.0...v2.3.1) (2015-12-01) | ||
### Reverts | ||
* **index:** automatically install for standalone ([25b8059](https://github.com/kazupon/vue-i18n/commit/25b8059)) | ||
<a name="2.3.0"></a> | ||
@@ -2,0 +11,0 @@ # [2.3.0](https://github.com/kazupon/vue-i18n/compare/v2.2.0...v2.3.0) (2015-11-26) |
/*! | ||
* vue-i18n v2.3.0 | ||
* vue-i18n v2.3.1 | ||
* (c) 2015 kazuya kawaguchi | ||
@@ -67,3 +67,2 @@ * Released under the MIT License. | ||
}); | ||
exports['default'] = install; | ||
@@ -77,3 +76,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
/** | ||
* install | ||
* plugin | ||
* | ||
@@ -84,3 +83,3 @@ * @param {Object} Vue | ||
function install(Vue) { | ||
exports['default'] = function (Vue) { | ||
var opts = arguments.length <= 1 || arguments[1] === undefined ? { lang: 'en', locales: {} } : arguments[1]; | ||
@@ -90,3 +89,3 @@ | ||
(0, _extend2['default'])(Vue, opts.locales); | ||
} | ||
}; | ||
@@ -113,10 +112,2 @@ /** | ||
} | ||
/** | ||
* install automaticlly | ||
*/ | ||
if (typeof window !== 'undefined' && window.Vue) { | ||
window.Vue.use(install); | ||
} | ||
module.exports = exports['default']; | ||
@@ -123,0 +114,0 @@ |
/*! | ||
* vue-i18n v2.3.0 | ||
* vue-i18n v2.3.1 | ||
* (c) 2015 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vue-i18n"]=t():e["vue-i18n"]=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={exports:{},id:n,loaded:!1};return e[n].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{lang:"en",locales:{}}:arguments[1];o(e.config,t.lang),(0,a["default"])(e,t.locales)}function o(e,t){Object.defineProperty(e,"lang",{get:function(){return t},set:function(e){t=e}})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var i=r(1),a=n(i);"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),e.exports=t["default"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),o=n(u),i=r(3),a=n(i);t["default"]=function(e,t){function r(e,r,u){var i=e;try{var a=n(t[r],e)||t[r][e];i=(u?(0,o["default"])(a,u):a)||e}catch(f){i=e}return i}var n=e.version&&-1===(0,a["default"])("1.0.8",e.version)?e.parsers.path.getPath:e.parsers.path.get,u=e.util;return e.prototype.$t=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;n>i;i++)o[i-1]=arguments[i];if(!t)return"";var a=e.config.lang;return 1===o.length?u.isObject(o[0])||u.isArray(o[0])?o=o[0]:"string"==typeof o[0]&&(a=o[0]):2===o.length&&("string"==typeof o[0]&&(a=o[0]),(u.isObject(o[1])||u.isArray(o[1]))&&(o=o[1])),r(t,a,o)},e},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\{([0-9a-zA-Z]+)\}/g;t["default"]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),u=1;t>u;u++)n[u-1]=arguments[u];return 1===n.length&&"object"==typeof n[0]&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(r,function(t,r,u){var o=void 0;return"{"===e[u-1]&&"}"===e[u+t.length]?r:(o=n.hasOwnProperty(r)?n[r]:null,null===o||void 0===o?"":o)})},e.exports=t["default"]},function(e,t){"use strict";function r(e){var t=e.split("."),r=t.splice(0,2);return r.push(t.join(".")),r}Object.defineProperty(t,"__esModule",{value:!0});var n=/-([\w-.]+)/;t["default"]=function(e,t){for(var u=r(e),o=r(t),i=0;3>i;i++){var a=parseInt(u[i]||0,10),f=parseInt(o[i]||0,10);if(a>f)return 1;if(f>a)return-1}if((u[2]+o[2]+"").indexOf("-")>-1){var s=(n.exec(u[2])||[""])[0],l=(n.exec(o[2])||[""])[0];if(""===s)return 1;if(""===l)return-1;if(s>l)return 1;if(l>s)return-1}return 0},e.exports=t["default"]}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vue-i18n"]=t():e["vue-i18n"]=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={exports:{},id:n,loaded:!1};return e[n].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){Object.defineProperty(e,"lang",{get:function(){return t},set:function(e){t=e}})}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=n(o);t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{lang:"en",locales:{}}:arguments[1];u(e.config,t.lang),(0,a["default"])(e,t.locales)},e.exports=t["default"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),o=n(u),a=r(3),f=n(a);t["default"]=function(e,t){function r(e,r,u){var a=e;try{var f=n(t[r],e)||t[r][e];a=(u?(0,o["default"])(f,u):f)||e}catch(i){a=e}return a}var n=e.version&&-1===(0,f["default"])("1.0.8",e.version)?e.parsers.path.getPath:e.parsers.path.get,u=e.util;return e.prototype.$t=function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;n>a;a++)o[a-1]=arguments[a];if(!t)return"";var f=e.config.lang;return 1===o.length?u.isObject(o[0])||u.isArray(o[0])?o=o[0]:"string"==typeof o[0]&&(f=o[0]):2===o.length&&("string"==typeof o[0]&&(f=o[0]),(u.isObject(o[1])||u.isArray(o[1]))&&(o=o[1])),r(t,f,o)},e},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\{([0-9a-zA-Z]+)\}/g;t["default"]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),u=1;t>u;u++)n[u-1]=arguments[u];return 1===n.length&&"object"==typeof n[0]&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(r,function(t,r,u){var o=void 0;return"{"===e[u-1]&&"}"===e[u+t.length]?r:(o=n.hasOwnProperty(r)?n[r]:null,null===o||void 0===o?"":o)})},e.exports=t["default"]},function(e,t){"use strict";function r(e){var t=e.split("."),r=t.splice(0,2);return r.push(t.join(".")),r}Object.defineProperty(t,"__esModule",{value:!0});var n=/-([\w-.]+)/;t["default"]=function(e,t){for(var u=r(e),o=r(t),a=0;3>a;a++){var f=parseInt(u[a]||0,10),i=parseInt(o[a]||0,10);if(f>i)return 1;if(i>f)return-1}if((u[2]+o[2]+"").indexOf("-")>-1){var s=(n.exec(u[2])||[""])[0],l=(n.exec(o[2])||[""])[0];if(""===s)return 1;if(""===l)return-1;if(s>l)return 1;if(l>s)return-1}return 0},e.exports=t["default"]}])}); |
{ | ||
"name": "vue-i18n", | ||
"description": "Internationalization plugin for Vue.js", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "kazuya kawaguchi", |
@@ -40,4 +40,2 @@ # vue-i18n | ||
You don't need to do this when using the standalone build because it installs itself automatically. | ||
# Usage | ||
@@ -44,0 +42,0 @@ |
@@ -5,3 +5,3 @@ import extend from './extend' | ||
/** | ||
* install | ||
* plugin | ||
* | ||
@@ -12,3 +12,3 @@ * @param {Object} Vue | ||
export default function install (Vue, opts = { lang: 'en', locales: {} }) { | ||
export default function (Vue, opts = { lang: 'en', locales: {} }) { | ||
defineConfig(Vue.config, opts.lang) | ||
@@ -35,10 +35,1 @@ extend(Vue, opts.locales) | ||
} | ||
/** | ||
* install automaticlly | ||
*/ | ||
if (typeof window !== 'undefined' && window.Vue) { | ||
window.Vue.use(install) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24889
464
220