1
0
mirror of https://github.com/go-task/task.git synced 2025-01-28 05:36:18 +02:00

feat(website): add spanish to language dropdown menu (#1187)

This commit is contained in:
Misite Bao 2023-06-04 02:45:51 +08:00 committed by GitHub
parent 8e4afa88f7
commit 1936142042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',