diff --git a/docs/7.migration/4.meta.md b/docs/7.migration/4.meta.md index 6416a273896d..7907106223d8 100644 --- a/docs/7.migration/4.meta.md +++ b/docs/7.migration/4.meta.md @@ -1,26 +1,26 @@ --- -title: Meta Tags -description: Manage your meta tags, from Nuxt 2 to Nuxt 3. +title: Мета-теги +description: Управление мета-тегами, от Nuxt 2 до Nuxt 3. --- -Nuxt 3 provides several different ways to manage your meta tags: -1. Through your `nuxt.config`. -2. Through the [`useHead`](/docs/api/composables/use-head) [composable](/docs/getting-started/seo-meta) -3. Through [global meta components](/docs/getting-started/seo-meta) +Nuxt 3 предоставляет несколько способов управления мета-тегами: +1. Через ваш `nuxt.config`. +2. С помощью композабла [`useHead`](/docs/api/composables/use-head) +3. С помощью [глобальных компонентов мета-тегов](/docs/getting-started/seo-meta) -You can customize `title`, `titleTemplate`, `base`, `script`, `noscript`, `style`, `meta`, `link`, `htmlAttrs` and `bodyAttrs`. +Вы можете настраивать `title`, `titleTemplate`, `base`, `script`, `noscript`, `style`, `meta`, `link`, `htmlAttrs` и `bodyAttrs`. ::tip -Nuxt currently uses [`vueuse/head`](https://github.com/vueuse/head) to manage your meta tags, but implementation details may change. +В настоящее время Nuxt использует [`vueuse/head`](https://github.com/vueuse/head) для управления мета-тегами, но детали реализации могут измениться. :: :read-more{to="/docs/getting-started/seo-meta"} ## Миграция -1. In your `nuxt.config`, rename `head` to `meta`. Consider moving this shared meta configuration into your `app.vue` instead. (Note that objects no longer have a `hid` key for deduplication.) -2. If you need to access the component state with `head`, you should migrate to using [`useHead`](/docs/api/composables/use-head) . You might also consider using the built-in meta-components. -3. If you need to use the Options API, there is a `head()` method you can use when you use `defineNuxtComponent`. +1. В вашем `nuxt.config`, переименуйте `head` в `meta`. Рассмотрите возможность перемещения этой общей конфигурации мета-тегов в ваш `app.vue`. (Обратите внимание, что объекты больше не имеют ключа `hid` для устранения дубликатов.) +2. Если вам нужен доступ к состоянию компонента с помощью `head`, вам следует мигрировать на использование [`useHead`](/docs/api/composables/use-head). Вам также может быть полезно использовать встроенные мета-компоненты. +3. Если вам нужно использовать Options API, есть метод `head()`, который вы можете использовать при использовании `defineNuxtComponent`. ### useHead @@ -30,8 +30,8 @@ Nuxt currently uses [`vueuse/head`](https://github.com/vueuse/head) to manage yo