Skip to content

Commit

Permalink
chore(docs): some leftover docs refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Sep 11, 2020
1 parent 5f295be commit 7518bd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/content/en/seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ position: 8
category: Guide
---

## Benefits

<alert type="info">

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.

</alert>

## 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 `<html>` tag
Expand Down
10 changes: 8 additions & 2 deletions docs/content/es/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ position: 2
category: Guía
---

<alert type="info">

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
</alert>

Agregar `nuxt-i18n` a tus dependencias:

Expand Down Expand Up @@ -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",
]
}
}
```

0 comments on commit 7518bd2

Please sign in to comment.