8.0.0 (2018-06-23)
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
- extend:
7.8.1 (2018-06-18)
7.8.0 (2018-06-01)
- typescript: add type exportings (a7cb8da)
7.7.0 (2018-05-20)
- index: resource reactivity (887a137), closes #253
- typescript: Fix typings in components (#344) by @Demivan (2402893), closes #344
7.6.0 (2018-03-13)
- index: support retunable missing handler (#256) by @houd1ni (9fbe467)
- typescript: update TranslateResult type interface (dffc678)
7.5.0 (2018-03-11)
- 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)
7.4.1 (2018-01-25)
7.4.0 (2018-01-10)
- typescript: Allow module augmentation (#273) by @CKGrafico (4371344)
7.3.4 (2018-01-07)
7.3.3 (2017-12-19)
- 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)
- typescript: fix import problem of vue2.5 because of the types update (#238) by @peterchealse (cb98347), closes #238
7.3.1 (2017-10-04)
7.3.0 (2017-09-22)
- directives: support v-t custom directive (welcome back!) (af9a2e7)
- typing: fix flowtype (fa06f44)
7.2.0 (2017-08-28)
7.1.2 (2017-08-25)
7.1.1 (2017-08-03)
7.1.0 (2017-07-30)
7.0.5 (2017-07-08)
7.0.4 (2017-07-01)
- link: fix ie traverse custom Array.prototype method (#188) by @632781460 (d3b308b), closes #188
7.0.3 (2017-06-13)
- 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)
7.0.1 (2017-06-04)
- 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
- datetime localization:
- number localization:
- component interpolation:
- typescript:
- fix translation performance issue (6032a51)
- path: tweak for ssr
- format: re-impelement formatter
- formatter: change method nam
- flowtype: fix locale message related type changing and remove underscore type
7.0.0-rc.1 (2017-05-26)
- flowtype: remove unneccesary type (eb60156)
7.0.0-beta.4 (2017-05-23)
7.0.0-beta.3 (2017-05-15)
- bring back from bug fix (95be4ea)
7.0.0-beta.2 (2017-05-14)
7.0.0-beta.1 (2017-05-11)
- 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)
- format: re-impelement formatter (a8c046d)
- formatter: change method name (6eed51c)
- flowtype: fix locale message related type changing (c30d576)
6.1.3 (2017-05-15)
6.1.2 (2017-05-15)
6.1.1 (2017-04-19)
- te: Fix
te()
that always usesthis.locale
, even whenlocale
supplied (#147) by @aicest (bf15eeb), closes #147
6.1.0 (2017-04-14)
- api: add 'mergeLocaleMessage' method (ef21621), closes #131
- silent: add silent translation missing option (29b3a17), closes #139
6.0.0 (2017-04-05)
🎉 🎉 🎉
See the docs
- Single File Components: example
- API
- Dynamic locale DEPRECATED
6.0.0-beta.1 (2017-03-22)
- change
fallbackRoot
andsync
option defaulttrue
value (0890b44) - remove messages settter, and add getLocaleMessage API (0f0914d)
- mixin: fix computed props errors (a6b7e37)
- flowtype: argument names (cf14425)
- fallbackLocale: support reactivity (ed758be)
- warn: suppress warning messages for production (6e417d2)
6.0.0-alpha.6 (2017-03-16)
- add 'setLocaleMessage' API (8b71eda)
6.0.0-alpha.5 (2017-03-11)
- 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)
- add
sync
option (5c46c07)
- mixin: add error throwings and a warning (0e4ac39)
6.0.0-alpha.2 (2017-02-27)
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.
- Formatting support
- Pluralization support
- Locale and KeyPath Syntax support
- Linked translation support
- Fallback translation support
- Component locale support
- Dynamic locale DEPRECATED
- Hot reload support
- 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
- 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
- locales DEPRECATED, use
messages
ofi18n
option (e.g{ i18n: { messaes: ... } }
)
- $lang DEPRECATED, use
locale
of Vue instance property$i18n
(e.gvm.$i18n.locale = 'en'
)
- constructor options: See the
I18nOptions
type of flowtype. - methods / properties: See the
I18n
interface definition of flowtype.
5.0.2 (2017-02-18)
5.0.1 (2017-02-16)
- asset: update locale reactivity setting (b42fd9a)
5.0.0 (2017-02-04)
4.10.0 (2017-01-01)
- override: change langVM keeping variable name (3ec1bb2)
4.9.0 (2016-12-17)
4.8.0 (2016-12-08)
4.7.4 (2016-11-29)
4.7.3 (2016-11-24)
4.7.2 (2016-11-19)
4.7.1 (2016-10-29)
- interpolate: named formatting: use name if value is missing (#77) by @SebastianS90 (a0cc343)
- named: using default use nmae when value is missing (c34e8f1)
4.7.0 (2016-10-28)
4.6.0 (2016-09-24)
- config: custom message formatter (#57) by @jvmccarthy (2748eb4)
4.5.0 (2016-09-15)
4.4.1 (2016-09-10)
4.4.0 (2016-08-29)
- add linked translations (#50) by @mmochetti (f7ae073)
4.3.1 (2016-08-26)
4.3.0 (2016-08-26)
- add pluralization (#44) by @mmochetti (b5b84d8)
4.2.3 (2016-08-23)
- improve re-rendering cost when change the lang (0707338)
4.2.2 (2016-08-15)
4.2.1 (2016-08-13)
- translate: fallback translation warning (5f6b271)
4.2.0 (2016-08-12)
- format: use hasOwn function of Vue.util (a8a19a0)
4.1.0 (2016-07-25)
- util: fixed isArray reference errors (0c6f6a0)
- support vue 2.0.0.beta later (0e1d2f7)
4.0.1 (2016-06-06)
- translate: fix underscore named argument translate issue (eeaf936)
4.0.0 (2016-05-10)
- support vue 2.0-pre-alpha (f6517bc)
3.1.1 (2016-05-09)
- auto installation for standalone (2b0dc09)
3.1.0 (2016-05-09)
- options: remove Vue.use options (d87b59b)
- 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)
- lang: support lang reactive changing (203ee85), closes #2 #15
- locale: support dynamic local (4d61e8d), closes #6 #21
- index: plugin install
Vue.use
options (options.locales
,options.lang
). See README
2.4.1 (2016-02-29)
- i18n: support ruby on rails i18n interpolation format (b6b2490)
2.4.0 (2016-02-06)
2.3.3 (2015-12-09)
- npm: npm install error (e31e89e)
- bower: good-bye bower 😉 (d99eb15)
- bower: not support
bower
package manager
I think that bower is dead. 🙅
2.3.2 (2015-12-09)
- bundle: more compact the vue-i18n distribution file (2f32ecc)
2.3.1 (2015-12-01)
- index: automatically install for standalone (25b8059)
2.3.0 (2015-11-26)
- index: support automatically install for standalone (ada2673)
- Re-implemetation with ES6 (babel)
- Add global local language setting with
Vue.config.lang
- Support Vue.js 0.12
- Remove the followings (Breaking Changes)
Vue.t
functionv-t
directive
- Fix unit test error
- Support template string in
$t
method - Support language changing in
$t
method
- Add
$t
method
- Bump to 0.11.0
- Support Vue.js 0.11.0-rc
- Support bower
- Add
Vue.t
function
- Release first
- Initial project