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()