From 7ece04e996da75134a4af25cc33fc62ff2e9ff89 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 24 Jul 2023 21:32:37 -0300 Subject: [PATCH] docs: add japanese and turkish translations (#1279) --- docs/docusaurus.config.js | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 9a1df50d..cdd690b4 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -31,18 +31,37 @@ const getConfig = async () => { i18n: { 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: { en: { label: 'English', direction: 'ltr', htmlLang: 'en-US' }, + 'es-ES': { + label: `Español (${translationProgress['es-ES'] || 0}%)`, + direction: 'ltr', + htmlLang: 'es-ES' + }, 'fr-FR': { label: `Français (${translationProgress['fr'] || 0}%)`, direction: 'ltr', htmlLang: 'fr-FR' }, + 'ja-JP': { + label: `日本語 (${translationProgress['ja'] || 0}%)`, + direction: 'ltr', + htmlLang: 'ja-JP' + }, 'pt-BR': { label: `Português (${translationProgress['pt-BR'] || 0}%)`, direction: 'ltr', @@ -53,10 +72,10 @@ const getConfig = async () => { direction: 'ltr', htmlLang: 'ru-RU' }, - 'es-ES': { - label: `Español (${translationProgress['es-ES'] || 0}%)`, + 'tr-TR': { + label: `Türkçe (${translationProgress['tr'] || 0}%)`, direction: 'ltr', - htmlLang: 'es-ES' + htmlLang: 'tr-TR' }, 'zh-Hans': { label: `简体中文 (${translationProgress['zh-CN'] || 0}%)`,