Skip to content

Commit

Permalink
release v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Feb 6, 2016
1 parent 68935e3 commit 37e42b8
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.4.0"></a>
# [2.4.0](https://github.com/kazupon/vue-i18n/compare/v2.3.3...v2.4.0) (2016-02-06)


### Features

* **i18n:** add Vue.t function ([68935e3](https://github.com/kazupon/vue-i18n/commit/68935e3)), closes [#17](https://github.com/kazupon/vue-i18n/issues/17)



<a name="2.3.3"></a>
## [2.3.3](https://github.com/kazupon/vue-i18n/compare/v2.3.2...v2.3.3) (2015-12-09)

Expand Down
26 changes: 21 additions & 5 deletions dist/vue-i18n.common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* vue-i18n v2.3.3
* (c) 2015 kazuya kawaguchi
* vue-i18n v2.4.0
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
Expand Down Expand Up @@ -141,14 +141,14 @@ function extend (Vue, locales) {
}

/**
* $t
* Vue.t
*
* @param {String} key
* @param {Array} ...args
* @return {String}
*/

Vue.prototype.$t = function (key) {
Vue.t = function (key) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
Expand Down Expand Up @@ -176,6 +176,22 @@ function extend (Vue, locales) {
return getVal(key, language, args);
};

/**
* $t
*
* @param {String} key
* @param {Array} ...args
* @return {String}
*/

Vue.prototype.$t = function (key) {
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}

return Vue.t.apply(Vue, [key].concat(args));
};

return Vue;
}

Expand Down Expand Up @@ -214,6 +230,6 @@ function defineConfig(config, lang) {
});
}

plugin.version = '2.3.3';
plugin.version = '2.4.0';

module.exports = plugin;
26 changes: 21 additions & 5 deletions dist/vue-i18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* vue-i18n v2.3.3
* (c) 2015 kazuya kawaguchi
* vue-i18n v2.4.0
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
(function (global, factory) {
Expand Down Expand Up @@ -145,14 +145,14 @@
}

/**
* $t
* Vue.t
*
* @param {String} key
* @param {Array} ...args
* @return {String}
*/

Vue.prototype.$t = function (key) {
Vue.t = function (key) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
Expand Down Expand Up @@ -180,6 +180,22 @@
return getVal(key, language, args);
};

/**
* $t
*
* @param {String} key
* @param {Array} ...args
* @return {String}
*/

Vue.prototype.$t = function (key) {
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}

return Vue.t.apply(Vue, [key].concat(args));
};

return Vue;
}

Expand Down Expand Up @@ -218,7 +234,7 @@
});
}

plugin.version = '2.3.3';
plugin.version = '2.4.0';

return plugin;

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-i18n",
"description": "Internationalization plugin for Vue.js",
"version": "2.3.3",
"version": "2.4.0",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ function defineConfig (config, lang) {
})
}

plugin.version = '2.3.3'
plugin.version = '2.4.0'

export default plugin

0 comments on commit 37e42b8

Please sign in to comment.