From fa5bd6e63798c671b79f5be2b65b35554117986c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20Garc=C3=ADa=20Rey?= Date: Wed, 12 Apr 2023 12:17:02 +0200 Subject: [PATCH] feat(i18n): Inclusion of spanish in the repo --- next.config.js | 6 +++--- theme.config.tsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index 0b6df8b..c8f9395 100644 --- a/next.config.js +++ b/next.config.js @@ -5,7 +5,7 @@ const withNextra = require('nextra')({ module.exports = withNextra({ i18n: { - locales: ['en', 'zh', 'jp', 'pt', 'tr'], - defaultLocale: 'en' - } + locales: ['en', 'zh', 'jp', 'pt', 'tr', 'es'], + defaultLocale: 'en', + }, }) diff --git a/theme.config.tsx b/theme.config.tsx index 16d0aa9..32d6fc3 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -21,6 +21,7 @@ const config: DocsThemeConfig = { { locale: 'jp', text: '日本語'}, { locale: 'pt', text: 'Português' }, { locale: 'tr', text: 'Türkçe' }, + { locale: 'es', text: 'Español' }, ], head: function UseHead() { const { title } = useConfig()