|
| 1 | +## v9.0.0-alpha.1 (2020-04-07) |
| 2 | + |
| 3 | +### :star: New Features |
| 4 | + |
| 5 | +#### Composable API |
| 6 | + |
| 7 | +New style API for Vue 3. See the following docs: |
| 8 | + |
| 9 | +- [createI18nComposer](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.createi18ncomposer.md) |
| 10 | +- [I18nComposerOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.i18ncomposeroptions.md) |
| 11 | +- [I18nComposer](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.i18ncomposer.md) |
| 12 | +- [useI18n](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.usei18n.md) |
| 13 | + |
| 14 | + |
| 15 | +### :lollipop: Examples |
| 16 | + |
| 17 | +See the [`examples`](https://github.com/intlify/vue-i18n-next/tree/master/examples) directory. |
| 18 | + |
| 19 | +The examples are offered that use the following two API styles: |
| 20 | + |
| 21 | +- composable |
| 22 | + - new vue-i18n API optimized for Vue 3. details about API |
| 23 | +- legacy |
| 24 | + - vue-i18n API almost compatible with vue-i18n v8.x |
| 25 | + |
| 26 | + |
| 27 | +### :heavy_exclamation_mark: Known issues |
| 28 | + |
| 29 | +#### :boom: Breaking changes compared to vue-i18n v8.x |
| 30 | + |
| 31 | +- API |
| 32 | + - The return value of `$t` and `t` methods is **string** only. object and array values are no longer returned. |
| 33 | + - The return value of `$tc` and `tc` methods is **string** only. object and array values are no longer returned. |
| 34 | + - `VueI18n` class cannot used with `new`. It can only be used via the `$i18n` property of Vue instance. |
| 35 | + - In vue-i18n-next, by replacing `new VueI18n` with `createI18n`, you can use existing `VueI18n` options as they are. |
| 36 | + - See the `examples/legacy` directory. |
| 37 | + - `VueI18n.prototype.getChoiceIndex` |
| 38 | + - -> Legacy API style: `pluralizationRules` option of `createI18n` factory function (like `new VueI18n(...)`) |
| 39 | + - -> Compsable API style: `pluralRules` option of `createI18nComposer` facatory function |
| 40 | + - `VueI18n.version` -> `import { VERSION } from 'vue-i18n'` |
| 41 | + - `VueI18n.availabilities` -> `import { availabilities } from 'vue-i18n'` |
| 42 | + - See the details [here](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.md) |
| 43 | + |
| 44 | +#### :zap: Improvements |
| 45 | + |
| 46 | +- See the [vue-i18n issues](https://github.com/kazupon/vue-i18n/issues?q=is%3Aissue+is%3Aopen+label%3A%22Status%3A+Ready%22) that labeld with `Status: Ready` |
| 47 | + |
| 48 | + |
| 49 | +#### :hammer: Missing features |
| 50 | + |
| 51 | +- imporve `fallbackLocale` or `fallbackLocales` (related vue-i18n [issue](https://github.com/kazupon/vue-i18n/pull/829)) |
| 52 | +- `<i18n>` custom block supporting for SFC |
| 53 | +- `v-t` directive |
| 54 | +- `preserveDirectiveContent` option (depend on `v-t`) |
| 55 | +- Compoonent interpolation with `<i18n>` component |
| 56 | +- Number custom formatting with `<i18n-n>` component |
| 57 | +- HTML format suppression with `warnHtmlInMessage` option |
| 58 | +- SSR |
| 59 | +- Custom formatting |
| 60 | +- Tooling |
| 61 | + - `vue-cli-plugin-i18n` |
| 62 | + - `@intlify/vue-i18n-loader` |
| 63 | + - `@intlify/rollup-plugin-vue-i18n` |
| 64 | + - `@intlify/vue-i18n-extensions` |
| 65 | + - `@intlify/eslint-plugin-vue-i18n` |
| 66 | + |
| 67 | + |
| 68 | +#### Committers: 1 |
| 69 | +- kazuya kawaguchi ([@kazupon](https://github.com/kazupon)) |
| 70 | + |
| 71 | + |
1 | 72 | ## v9.0.0-alpha.0 (2020-04-07)
|
2 | 73 |
|
3 | 74 | #### Committers: 1
|
|
0 commit comments