From d2fa9e65447cee08c9f140f8555f1fe2a6b830f3 Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Fri, 13 Sep 2024 22:29:58 +0200 Subject: [PATCH] docs: remove duplicate page --- .../5.v9/2.guide/18.breaking-changes-in-v9.md | 62 ------------------- .../5.v9/2.guide/19.breaking-changes-in-v9.md | 37 +++++++++++ 2 files changed, 37 insertions(+), 62 deletions(-) delete mode 100644 docs/content/docs/5.v9/2.guide/18.breaking-changes-in-v9.md diff --git a/docs/content/docs/5.v9/2.guide/18.breaking-changes-in-v9.md b/docs/content/docs/5.v9/2.guide/18.breaking-changes-in-v9.md deleted file mode 100644 index 1b69e3cc8..000000000 --- a/docs/content/docs/5.v9/2.guide/18.breaking-changes-in-v9.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: Breaking Chainges in v9 -description: Follow this guide to upgrade from one major version to the other. ---- - -::callout{icon="i-heroicons-exclamation-triangle" color="amber"} -`nuxtjs/i18n` v9 is still an alpha version -:: - -## Upgrade to Vue I18n v10 - -Vue I18n has been upgraded from v9 to v10. Vue I18n v10 has no major feature additions, but there are some disruptive changes, such as dropping some features that were deprecated in v9 and integrating the API `$tc` into `$t`, which can be used in the Legacy API style - -Check the documentation [here](https://vue-i18n.intlify.dev/guide/migration/breaking10.html#change-t-and-t-overloaded-signature-for-legacy-api-mode) for more information. - - -## Drop `jit` option - -JIT compilation is now the default in Vue I18n v10. - -https://vue-i18n.intlify.dev/guide/migration/breaking10.html#default-enable-for-jit-compilation - -Accordingly, the `jit` option in Nuxt I18n v8 is no longer needed, so this option has been removed. - - -## Removal of deprecated `dynamicRouteParams` option and legacy dynamic route parameters implementation - -Setting dynamic route parameters by setting the `nuxtI18n` property with `definePageMeta` has been fully removed in favor of the [`useSetI18nParams` composable](/docs/api#useseti18nparams), this feature is enabled by default which means the `dynamicRouteParams` option is no longer necessary. - -The composable usage is similar to that of the deprecated implementation, see the migration example below: - -```html - - -``` - -Should be changed to: - -```html - - -``` - -Check out the [Lang Switcher](/docs/guide/lang-switcher#dynamic-route-parameters) guide for more details. - diff --git a/docs/content/docs/5.v9/2.guide/19.breaking-changes-in-v9.md b/docs/content/docs/5.v9/2.guide/19.breaking-changes-in-v9.md index 7c558a050..1bee88208 100644 --- a/docs/content/docs/5.v9/2.guide/19.breaking-changes-in-v9.md +++ b/docs/content/docs/5.v9/2.guide/19.breaking-changes-in-v9.md @@ -78,3 +78,40 @@ The types and names have been fixed in v9, if you have been using the unprefixed - `localeLocation` -> `$localeLocation` - `switchLocalePath` -> `$switchLocalePath` - `localeHead` -> `$localeHead` + +## Removal of deprecated `dynamicRouteParams` option and legacy dynamic route parameters implementation + +Setting dynamic route parameters by setting the `nuxtI18n` property with `definePageMeta` has been fully removed in favor of the [`useSetI18nParams` composable](/docs/api#useseti18nparams), this feature is enabled by default which means the `dynamicRouteParams` option is no longer necessary. + +The composable usage is similar to that of the deprecated implementation, see the migration example below: + +```html + + +``` + +Should be changed to: + +```html + + +``` + +Check out the [Lang Switcher](/docs/guide/lang-switcher#dynamic-route-parameters) guide for more details.