diff --git a/docs/content/docs/2.guide/8.lang-switcher.md b/docs/content/docs/2.guide/8.lang-switcher.md index 8b17db41a..4b008f23e 100644 --- a/docs/content/docs/2.guide/8.lang-switcher.md +++ b/docs/content/docs/2.guide/8.lang-switcher.md @@ -238,7 +238,7 @@ route.meta.pageTransition.onBeforeEnter = async () => { ## Dynamic route parameters using `definePageMeta` (Deprecated) ::callout{type="warning"} -Dynamic route params using `nuxtI18n` on `definePageMeta` has been deprecated and will be removed in `v8.1`, use the composable [`useSetI18nParams`](/docs/api#useseti18nparams) instead. +Dynamic route params using `nuxtI18n` on `definePageMeta` has been deprecated and will be removed in `v9`, use the composable [`useSetI18nParams`](/docs/api#useseti18nparams) instead. :: Dynamic params can be configured using `definePageMeta`. These will be merged with route params when generating lang switch routes with `switchLocalePath()`. diff --git a/src/module.ts b/src/module.ts index 276241a20..2c7977ac9 100644 --- a/src/module.ts +++ b/src/module.ts @@ -123,7 +123,7 @@ export default defineNuxtModule({ if (options.dynamicRouteParams) { logger.warn( - 'The `dynamicRouteParams` options is deprecated and will be removed in `v8.1`, use the `useSetI18nParams` composable instead.' + 'The `dynamicRouteParams` options is deprecated and will be removed in `v9`, use the `useSetI18nParams` composable instead.' ) } @@ -246,7 +246,7 @@ export default defineNuxtModule({ /** * `PageMeta` augmentation to add `nuxtI18n` property - * TODO: Remove in v8.1, `useSetI18nParams` should be used instead + * TODO: Remove in v9, `useSetI18nParams` should be used instead */ if (!!options.dynamicRouteParams) { addTypeTemplate({ diff --git a/src/transform/meta-deprecation.ts b/src/transform/meta-deprecation.ts index fcffcf9e0..8d8a16493 100644 --- a/src/transform/meta-deprecation.ts +++ b/src/transform/meta-deprecation.ts @@ -54,7 +54,7 @@ export const MetaDeprecationPlugin = createUnplugin((options: MetaDeprecationPlu if (match?.[0]) { // prettier-ignore logger.warn( - `Setting \`nuxtI18n\` on \`definePageMeta\` is deprecated and will be removed in \`v8.1\`, use the \`useSetI18nParams\` composable instead.\nUsage found in ${id.split('?')[0]}` + `Setting \`nuxtI18n\` on \`definePageMeta\` is deprecated and will be removed in \`v9\`, use the \`useSetI18nParams\` composable instead.\nUsage found in ${id.split('?')[0]}` ) }