diff --git a/README.md b/README.md index 6d15643..5b195dd 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 4d482c8..419b2e3 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -21,7 +21,7 @@ Set the desired language with: lang: ru ``` -Values: `en`, `ru`, `zh`, `hi` +Values: `en`, `ru`, `zh`, `hi`, `es` Default: `en` diff --git a/docs/ru/reference/configuration.md b/docs/ru/reference/configuration.md index 8dd44a8..677f865 100644 --- a/docs/ru/reference/configuration.md +++ b/docs/ru/reference/configuration.md @@ -21,7 +21,7 @@ title: Моя домашняя страница lang: ru ``` -Поддерживаемые значения: `en`, `ru`, `zh`, `hi` +Поддерживаемые значения: `en`, `ru`, `zh`, `hi`, `es` Значение по умолчанию: `en` diff --git a/locales/es-ES.json b/locales/es-ES.json new file mode 100644 index 0000000..050e90a --- /dev/null +++ b/locales/es-ES.json @@ -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 →" + } +} diff --git a/nuxt.config.ts b/nuxt.config.ts index dbf8a48..02575d1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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',