1
0
mirror of https://github.com/go-task/task.git synced 2025-11-27 22:38:20 +02:00

docs: add japanese and turkish translations (#1279)

This commit is contained in:
Andrey Nering
2023-07-24 21:32:37 -03:00
committed by GitHub
parent d4d3571c96
commit 7ece04e996

View File

@@ -31,18 +31,37 @@ const getConfig = async () => {
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: 'en',
locales: ['en', 'fr-FR', 'pt-BR', 'ru-RU', 'es-ES', 'zh-Hans'], locales: [
'en',
'es-ES',
'fr-FR',
'ja-JP',
'pt-BR',
'ru-RU',
'tr-TR',
'zh-Hans'
],
localeConfigs: { localeConfigs: {
en: { en: {
label: 'English', label: 'English',
direction: 'ltr', direction: 'ltr',
htmlLang: 'en-US' htmlLang: 'en-US'
}, },
'es-ES': {
label: `Español (${translationProgress['es-ES'] || 0}%)`,
direction: 'ltr',
htmlLang: 'es-ES'
},
'fr-FR': { 'fr-FR': {
label: `Français (${translationProgress['fr'] || 0}%)`, label: `Français (${translationProgress['fr'] || 0}%)`,
direction: 'ltr', direction: 'ltr',
htmlLang: 'fr-FR' htmlLang: 'fr-FR'
}, },
'ja-JP': {
label: `日本語 (${translationProgress['ja'] || 0}%)`,
direction: 'ltr',
htmlLang: 'ja-JP'
},
'pt-BR': { 'pt-BR': {
label: `Português (${translationProgress['pt-BR'] || 0}%)`, label: `Português (${translationProgress['pt-BR'] || 0}%)`,
direction: 'ltr', direction: 'ltr',
@@ -53,10 +72,10 @@ const getConfig = async () => {
direction: 'ltr', direction: 'ltr',
htmlLang: 'ru-RU' htmlLang: 'ru-RU'
}, },
'es-ES': { 'tr-TR': {
label: `Español (${translationProgress['es-ES'] || 0}%)`, label: `Türkçe (${translationProgress['tr'] || 0}%)`,
direction: 'ltr', direction: 'ltr',
htmlLang: 'es-ES' htmlLang: 'tr-TR'
}, },
'zh-Hans': { 'zh-Hans': {
label: `简体中文 (${translationProgress['zh-CN'] || 0}%)`, label: `简体中文 (${translationProgress['zh-CN'] || 0}%)`,