From 7518bd24eafec07d42847043e403dd55e6aef279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Fri, 11 Sep 2020 12:05:25 +0200 Subject: [PATCH] chore(docs): some leftover docs refactoring --- docs/content/en/seo.md | 4 ++-- docs/content/es/setup.md | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/content/en/seo.md b/docs/content/en/seo.md index f9c8d6b2a..9c5896394 100644 --- a/docs/content/en/seo.md +++ b/docs/content/en/seo.md @@ -5,14 +5,14 @@ position: 8 category: Guide --- -## Benefits - Using `seo` option (or alternatively the `$nuxtI18nSeo`-based solution - see [Improving Performance](#improving-performance)) requires that locales are configured as an array of objects and not strings. +## Benefits + When the `seo` option is enabled, **nuxt-i18n** attempts to add some metadata to improve your pages SEO. Here's what it does. ### `lang` attribute for `` tag diff --git a/docs/content/es/setup.md b/docs/content/es/setup.md index 4206fcc78..82e925582 100644 --- a/docs/content/es/setup.md +++ b/docs/content/es/setup.md @@ -5,9 +5,11 @@ position: 2 category: Guía --- + + Consulte la [documentación de Nuxt.js]((https://nuxtjs.org/guides/configuration-glossary/configuration-modules)) para obtener más información sobre la instalación y el uso de módulos en Nuxt.js. -## Instalacíon + Agregar `nuxt-i18n` a tus dependencias: @@ -41,13 +43,17 @@ Luego añadir `nuxt-i18n` a la `modules` seccíon de `nuxt.config.js`: } ``` +## Typescript + Si está utilizando typescript o ejecuta un servidor de lenguaje de typescript para verificar el código (por ejemplo, a través de Vetur), agregue tipos a la matriz `types` en su `tsconfig.json`: ```js{}[tsconfig.json] { "compilerOptions": { "types": [ - "nuxt-i18n" + "@nuxt/types", + "nuxt-i18n", ] } } +```