CHANGELOG.md
47.8 KB
8.9.0 (2019-03-08)
🐛 Bug Fixes
⭐ New Features
- index: add availableLocales (related issue #193, PR #528) by @exoego (8f75b1f), closes #193 #528 #193 #193 #193 #193
⚡ Improvements
8.8.2 (2019-02-17)
🐛 Bug Fixes
8.8.1 (2019-02-10)
🐛 Bug Fixes
⚡ Improvements
8.8.0 (2019-01-29)
🐛 Bug Fixes
- index: fix flat path based key issue (bed9c39), closes #349
- mixin: fix beforeDestroy can not find this.$t (#500) by @masongzhi (311b8f3), closes #500
⚡ Improvements
- directive: Fix typo on warning message (#509) by @kimuraz (e879024), closes #509
- index: silence fallback warnings (#510) by @SzNagyMisu (ddc0c79), closes #510 #139
8.7.0 (2019-01-02)
⚡ Improvements
8.6.0 (2018-12-25)
🐛 Bug Fixes
-
pluralization: inherit pluralization rules
⚠ (#493) by @Raiondesu (7a23f32), closes #493
⚡ Improvements
- format: Add the path as argument to the custom formatter (#489) by @Raiondesu (b9437ea), closes #489 #484 #484
8.5.0 (2018-12-17)
🐛 Bug Fixes
⚡ Improvements
- index: Allow pluralization customization via constructor options (closes #464) (#482) by @Raiondesu (ef4b1a6), closes #464 #482 #464 #464 #464 #464 #451
- index: make silentTranslationWarn work for dates and numbers too (#481) by @Raiondesu (402092b), closes #481
- types: typed autocomplete in date and number format options (#485) by @Raiondesu (e2e5993), closes #485
8.4.0 (2018-11-30)
⭐ New Features
8.3.2 (2018-11-16)
📈 Performance Fixes
8.3.1 (2018-11-08)
🐛 Bug Fixes
- directive: fix cannnot update with v-t when had been changed locale message (4895a2e), closes #450
- index: fix merge bug (1798490), closes #458
- missing: fix vm argument passing (dc48099), closes #453
⚡ Improvements
8.3.0 (2018-10-29)
⚡ Improvements
- pluralization: Extendable pluralization by @Raiondesu (bbab90b)
8.2.1 (2018-10-15)
🐛 Bug Fixes
⚡ Improvements
- index: Suppress some warnings in production: smaller min.js and performance gain. (#441) by @ exoego (43931f5), closes #441
8.2.0 (2018-10-13)
🐛 Bug Fixes
- index: Add warning for circular reference in linked message (#438) by @exoego (7583485), closes #438
⚡ Improvements
- index: Allow escaping link key like @:(foo.bar). (#437) by @exoego (acfc458), closes #437
- index: Pre-defined named arguments for Pluraization (#440) by @exoego (e84f0fb), closes #440
- path: Allow non-ascii chars including numbers. (#436) by @exoego (a556c58), closes #436
8.1.1 (2018-10-12)
🐛 Bug Fixes
- build: fix rollup building issues (1a1958a)
- format: Should warn as unknown if named format is not closed. (#435) by @exoego (d1f6ed0), closes #435
- install: fix cannot redfine error (6d5ec61)
⚡ Improvements
- package.json: tree shaking optimization (38948c5)
8.1.0 (2018-09-03)
🐛 Bug Fixes
- install: add support for Vue.extend vue-i18n instance (#420) by @jaredzhu1993 (a60ea8b), closes #420
⚡ Improvements
8.0.0 (2018-06-23)
💥 Breaking changes
Note that you need to guarantee this context equal to component instance in lifecycle methods (e.g. in data
options, const $t = this.$t.bind(this)
).
export default {
data () {
const $t = this.$t.bind(this)
return { msg: $t('msg') }
}
}
see the API docs
🐛 Bug Fixes
NOTE
- extend:
7.8.1 (2018-06-18)
🐛 Bug Fixes
7.8.0 (2018-06-01)
⚡ Improvements
- typescript: add type exportings (a7cb8da)
7.7.0 (2018-05-20)
⚡ Improvements
- index: resource reactivity (887a137), closes #253
- typescript: Fix typings in components (#344) by @Demivan (2402893), closes #344
7.6.0 (2018-03-13)
⚡ Improvements
- index: support retunable missing handler (#256) by @houd1ni (9fbe467)
- typescript: update TranslateResult type interface (dffc678)
7.5.0 (2018-03-11)
⭐ New Features
⚡ Improvements
- flow: update TranslateResult type interface (59f4658)
- index: support object localization (#311) by @manniL (99e5006)
- missing: Add interpolation values to missing handler (#308) by @sebwas (b912d8a)
- numberformat: Explicit number format options (#305) by @bponomarenko (aa07450)
7.4.2 (2018-02-01)
⚡ Improvements
7.4.1 (2018-01-25)
🐛 Bug Fixes
⚡ Improvements
7.4.0 (2018-01-10)
⭐ New Features
- typescript: Allow module augmentation (#273) by @CKGrafico (4371344)
7.3.4 (2018-01-07)
🐛 Bug Fixes
7.3.3 (2017-12-19)
🐛 Bug Fixes
- extend: Fix this not found #259 (#260) by @lzxb (c29007e), closes #259 #260
- types: fix using old export (#263) by @jmigual (b295fee), closes #263
7.3.2 (2017-10-19)
⚡ Improvements
- typescript: fix import problem of vue2.5 because of the types update (#238) by @peterchealse (cb98347), closes #238
7.3.1 (2017-10-04)
🐛 Bug Fixes
7.3.0 (2017-09-22)
⭐ New Features
- directives: support v-t custom directive (welcome back!) (af9a2e7)
🆙 Updates
- typing: fix flowtype (fa06f44)
7.2.0 (2017-08-28)
⭐ New Features
7.1.2 (2017-08-25)
⚡ Improvements
7.1.1 (2017-08-03)
🐛 Bug Fixes
7.1.0 (2017-07-30)
⚡ Improvements
7.0.5 (2017-07-08)
🐛 Bug Fixes
7.0.4 (2017-07-01)
🐛 Bug Fixes
- link: fix ie traverse custom Array.prototype method (#188) by @632781460 (d3b308b), closes #188
📈 Performance Fixes
7.0.3 (2017-06-13)
🐛 Bug Fixes
- fallback: fix cannot fallabck localization (694e6f2), closes #176
- fallback: fix fallback locale issue (d9ceddc), closes #174
- linked: fix cannot fallback linked localization (0c572f3), closes #172
7.0.2 (2017-06-10)
🐛 Bug Fixes
7.0.1 (2017-06-04)
🐛 Bug Fixes
- fix cannat single file component translation (687d406), closes #169
- fix cannnot resolve linked localization with component interpolation (c973619), closes #171
- fix datetime and number fallback localization (be9e1bd), closes #168
- fix linked translation with using hyphen or underscore keypath (6e9f151), closes #170
7.0.0 (2017-05-29)
See the docs
⭐ New Features
- datetime localization:
- number localization:
- component interpolation:
- typescript:
📈 Performance Fixes
- fix translation performance issue (6032a51)
⚡ Improvements
- path: tweak for ssr
💥 Breaking changes
- format: re-impelement formatter
- formatter: change method nam
- flowtype: fix locale message related type changing and remove underscore type
🐛 Bug Fixes
7.0.0-rc.1 (2017-05-26)
📈 Performance Fixes
🆙 Updates
- flowtype: remove unneccesary type (eb60156)
7.0.0-beta.4 (2017-05-23)
🐛 Bug Fixes
7.0.0-beta.3 (2017-05-15)
🆙 Updates
- bring back from bug fix (95be4ea)
7.0.0-beta.2 (2017-05-14)
⚡ Improvements
7.0.0-beta.1 (2017-05-11)
⭐ New Features
- datetime localization: add datetime localization (3282075)
- number localization: add number localization (87ee7b3)
- component interpolation: (23f7d34), closes #145 #144 #37
- typescript: add TypeScript type definitions (#161) by @aicest (61cebca)
💥 Breaking changes
- format: re-impelement formatter (a8c046d)
- formatter: change method name (6eed51c)
- flowtype: fix locale message related type changing (c30d576)
🐛 Bug Fixes
6.1.3 (2017-05-15)
🐛 Bug Fixes
6.1.2 (2017-05-15)
6.1.1 (2017-04-19)
🐛 Bug Fixes
-
te: Fix
te()
that always usesthis.locale
, even whenlocale
supplied (#147) by @aicest (bf15eeb), closes #147
6.1.0 (2017-04-14)
⭐ New Features
- api: add 'mergeLocaleMessage' method (ef21621), closes #131
- silent: add silent translation missing option (29b3a17), closes #139
⚡ Improvements
6.0.0 (2017-04-05)
See the docs
⚡ Improvements
⭐ NEW Features
- Single File Components: example
💥 Breaking changes
- API
- Dynamic locale DEPRECATED
6.0.0-beta.1 (2017-03-22)
💥 Breaking changes
- change
fallbackRoot
andsync
option defaulttrue
value (0890b44) - remove messages settter, and add getLocaleMessage API (0f0914d)
🐛 Bug Fixes
- mixin: fix computed props errors (a6b7e37)
🆙 Updates
- flowtype: argument names (cf14425)
⚡ Improvements
- fallbackLocale: support reactivity (ed758be)
- warn: suppress warning messages for production (6e417d2)
6.0.0-alpha.6 (2017-03-16)
⭐ New Features
- add 'setLocaleMessage' API (8b71eda)
6.0.0-alpha.5 (2017-03-11)
🐛 Bug Fixes
- mixin: fix cannot create VueI18n instance error for minify production (7eeb29f)
6.0.0-alpha.4 (2017-03-11)
6.0.0-alpha.3 (2017-03-08)
⭐ New Features
- add
sync
option (5c46c07)
⚡ Improvements
- mixin: add error throwings and a warning (0e4ac39)
6.0.0-alpha.2 (2017-02-27)
⚡ Improvements
6.0.0-alpha.1 (2017-02-23)
This is the first release of 6.0. In this version, we are some big breaking changes.
- Recommended for: experiments, prototypes, upgrading small, non-critical apps
- NOT recommended for: production use, upgrading production apps
In the examples, please refer to this examples directory.
Improvements
Features
- Formatting support
- Pluralization support
- Locale and KeyPath Syntax support
- Linked translation support
- Fallback translation support
- Component locale support
- Dynamic locale DEPRECATED
- Hot reload support
API
Global Config
- Vue.config.lang DEPRECATED, use VueI18n constructor
locale
option, or VueI18n#locale - Vue.config.fallbackLang DEPRECATED, use VueI18n constructor
fallbackLocale
option, or VueI18n#fallbackLocale - Vue.config.missingHandler DEPRECATED, use VueI18n constructor
missing
option, or VueI18n#missing - Vue.config.i18nFormatter DEPRECATED, use VueI18n constructor
formatter
option, or VueI18n#formatter
Global Method
- Vue.locale DEPRECATED, use VueI18n constructor
messages
option, or VueI18n#messages - Vue.t DEPRECATED, use VueI18n#t
- Vue.tc DEPRECATED, use VueI18n#tc
- Vue.te DEPRECATED, use VueI18n#te
Constructor Options
- locales DEPRECATED, use
messages
ofi18n
option (e.g{ i18n: { messaes: ... } }
)
Instance Properties
- $lang DEPRECATED, use
locale
of Vue instance property$i18n
(e.gvm.$i18n.locale = 'en'
)
VueI18n class NEW
- constructor options: See the
I18nOptions
type of flowtype. - methods / properties: See the
I18n
interface definition of flowtype.
5.0.2 (2017-02-18)
⚡ Improvements
5.0.1 (2017-02-16)
⚡ Improvements
- asset: update locale reactivity setting (b42fd9a)
5.0.0 (2017-02-04)
💥 Breaking changes
4.10.0 (2017-01-01)
⭐ New Features
🆙 Updates
- override: change langVM keeping variable name (3ec1bb2)
4.9.0 (2016-12-17)
🐛 Bug Fixes
⭐ New Features
4.8.0 (2016-12-08)
⚡ Improvements
4.7.4 (2016-11-29)
🐛 Bug Fixes
4.7.3 (2016-11-24)
🐛 Bug Fixes
4.7.2 (2016-11-19)
🐛 Bug Fixes
⚡ Improvements
4.7.1 (2016-10-29)
🐛 Bug Fixes
- interpolate: named formatting: use name if value is missing (#77) by @SebastianS90 (a0cc343)
⚡ Improvements
- named: using default use nmae when value is missing (c34e8f1)
4.7.0 (2016-10-28)
⭐ New Features
⚡ Improvements
4.6.0 (2016-09-24)
⭐ New Features
- config: custom message formatter (#57) by @jvmccarthy (2748eb4)
4.5.0 (2016-09-15)
⭐ New Features
4.4.1 (2016-09-10)
⚡ Improvements
4.4.0 (2016-08-29)
⭐ New Features
- add linked translations (#50) by @mmochetti (f7ae073)
4.3.1 (2016-08-26)
🐛 Bug Fixes
4.3.0 (2016-08-26)
⭐ New Features
- add pluralization (#44) by @mmochetti (b5b84d8)
4.2.3 (2016-08-23)
📈 Performance Fixes
- improve re-rendering cost when change the lang (0707338)
4.2.2 (2016-08-15)
🐛 Bug Fixes
4.2.1 (2016-08-13)
⚡ Improvements
- translate: fallback translation warning (5f6b271)
4.2.0 (2016-08-12)
📈 Performance Fixes
- format: use hasOwn function of Vue.util (a8a19a0)
⭐ New Features
4.1.0 (2016-07-25)
🐛 Bug Fixes
- util: fixed isArray reference errors (0c6f6a0)
⭐ New Features
- support vue 2.0.0.beta later (0e1d2f7)
4.0.1 (2016-06-06)
🐛 Bug Fixes
- translate: fix underscore named argument translate issue (eeaf936)
4.0.0 (2016-05-10)
⚡ Improvements
- support vue 2.0-pre-alpha (f6517bc)
3.1.1 (2016-05-09)
⭐ New Features
- auto installation for standalone (2b0dc09)
3.1.0 (2016-05-09)
⭐ New Features
⚠ Depcreted
- options: remove Vue.use options (d87b59b)
⚡ Improvements
- keypath: port the object path parser (3ae04b7)
- translation: fix hypenate included key translating (d0a415f), closes #24
- translation: warning outputing when cannot translate with keypath (b4c7c0e), closes #22
3.0.0 (2016-04-18)
Features
- lang: support lang reactive changing (203ee85), closes #2 #15
- locale: support dynamic local (4d61e8d), closes #6 #21
DEPRECATED
-
index: plugin install
Vue.use
options (options.locales
,options.lang
). See README
2.4.1 (2016-02-29)
Features
- i18n: support ruby on rails i18n interpolation format (b6b2490)
2.4.0 (2016-02-06)
Features
2.3.3 (2015-12-09)
Bug Fixes
- npm: npm install error (e31e89e)
Features
-
bower: good-bye bower
😉 (d99eb15)
BREAKING CHANGES
- bower: not support
bower
package manager
I think that bower is dead.
2.3.2 (2015-12-09)
Features
- bundle: more compact the vue-i18n distribution file (2f32ecc)
2.3.1 (2015-12-01)
Reverts
- index: automatically install for standalone (25b8059)
2.3.0 (2015-11-26)
Bug Fixes
Features
- index: support automatically install for standalone (ada2673)
v2.2.0 / 2015-09-16
- Re-implemetation with ES6 (babel)
v2.1.0 / 2015-07-03
- Add global local language setting with
Vue.config.lang
v2.0.0 / 2015-06-29
- Support Vue.js 0.12
- Remove the followings (Breaking Changes)
-
Vue.t
function -
v-t
directive
-
v1.1.1 / 2015-04-21
- Fix unit test error
v1.1.0 / 2015-01-10
- Support template string in
$t
method - Support language changing in
$t
method
v1.0.0 / 2015-01-10
- Add
$t
method
v0.11.0 / 2014-11-07
- Bump to 0.11.0
v0.2.0 / 2014-10-08
- Support Vue.js 0.11.0-rc
v0.1.2 / 2014-10-07
- Support bower
v0.1.1 / 2014-10-06
- Add
Vue.t
function
v0.1.0 / 2014-05-06
- Release first
v0.0.0 / 2014-05-03
- Initial project