Skip to content

Commit

Permalink
feat: spanish language
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 20, 2024
1 parent 09b2154 commit 7d4b090
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Supported Languages:
* 🇷🇺 **Russian** - `ru`
* 🇨🇳 **Chinese** - `zh`
* 🇨🇮 **Hindi** - `hi`
* 🇪🇸 **Spanish** - `es`

If you haven't found your language, it can easily be added! Use the instructions in the section [contributing](https://mafl.hywax.space/community/contributing.html) on docs.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Set the desired language with:
lang: ru
```

Values: `en`, `ru`, `zh`, `hi`
Values: `en`, `ru`, `zh`, `hi`, `es`

Default: `en`

Expand Down
2 changes: 1 addition & 1 deletion docs/ru/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ title: Моя домашняя страница
lang: ru
```

Поддерживаемые значения: `en`, `ru`, `zh`, `hi`
Поддерживаемые значения: `en`, `ru`, `zh`, `hi`, `es`

Значение по умолчанию: `en`

Expand Down
17 changes: 17 additions & 0 deletions locales/es-ES.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"service": {

},

"error": {
"title": "Error",
"page404": "Página no encontrada!",
"description": "¡Uy! Se ha producido un error inesperado",
"action": "Ir a la documentación"
},

"update": {
"message": "Ya está disponible una nueva versión",
"visit": "Visitar en github →"
}
}
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ export default defineNuxtConfig({
name: 'हिंदी',
file: 'hi-IN.json',
},
{
code: 'es',
iso: 'es-ES',
name: 'Español',
file: 'es-ES.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
Expand Down

0 comments on commit 7d4b090

Please sign in to comment.