From 1936142042562c627e0843e7e90e48a7a87e43a3 Mon Sep 17 00:00:00 2001 From: Misite Bao Date: Sun, 4 Jun 2023 02:45:51 +0800 Subject: [PATCH] feat(website): add spanish to language dropdown menu (#1187) --- docs/docusaurus.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 0a82ca63..5a8085cf 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -31,7 +31,7 @@ const getConfig = async () => { i18n: { defaultLocale: 'en', - locales: ['en', 'fr-FR', 'pt-BR', 'ru-RU', 'zh-Hans'], + locales: ['en', 'fr-FR', 'pt-BR', 'ru-RU', 'es-ES', 'zh-Hans'], localeConfigs: { en: { label: 'English', @@ -53,6 +53,11 @@ const getConfig = async () => { direction: 'ltr', htmlLang: 'ru-RU' }, + 'es-ES': { + label: `Español (${translationProgress['es-ES'] || 0}%)`, + direction: 'ltr', + htmlLang: 'es-ES' + }, 'zh-Hans': { label: `简体中文 (${translationProgress['zh-CN'] || 0}%)`, direction: 'ltr',