Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

v6.0.0-alpha.1

Pre-release
Pre-release

Choose a tag to compare

@kazupon kazupon released this 23 Feb 07:31
· 818 commits to dev since this release
a510145

v6.0.0-alpha.1 (2017-02-23)

This is the first release of 6.0.
In this version, have some big breaking changes.

  • Recommended for: experiments, prototypes, upgrading small, non-critical apps
  • NOT recommended for: production use, upgrading production apps

⚠️ Documentation still needs to be worked on. And also, we might change some APIs and features.

In the examples, please refer to this examples directory.

Improvements

the below server-side rendering demo animation-gif:
vue-i18n-ssr

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 of i18n option (e.g { i18n: { messaes: ... } })

Instance Properties

  • $lang DEPRECATED, use locale of Vue instance property $i18n (e.g vm.$i18n.locale = 'en')

VueI18n class NEW