From 1e4a1be6ecbb428252107d1fe5f827186ef750c2 Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Wed, 6 Dec 2023 15:04:13 -0500 Subject: [PATCH 1/2] Fix CROWDIN_TOKEN error handling --- src/utils/updateLocalePercentages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/updateLocalePercentages.ts b/src/utils/updateLocalePercentages.ts index c4266a85..0f7165fb 100644 --- a/src/utils/updateLocalePercentages.ts +++ b/src/utils/updateLocalePercentages.ts @@ -73,7 +73,7 @@ export default async function updateLocalePercentages() { } } async function getLocalePercentagesFromCrowdin() { - if (!process.env.CROWDIN_TOKEN) throw new Error("CROWDIN_TOKEN is not defined"); + if (!process.env.CROWDIN_TOKEN) return; try { const response = await fetch("https://crowdin.com/api/v2/projects/627048/languages/progress", { headers: { Authorization: "Bearer " + process.env.CROWDIN_TOKEN }, From c83892d369e152ef725eccbbd9c0b5f13fe7c42a Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Wed, 6 Dec 2023 15:07:29 -0500 Subject: [PATCH 2/2] translations: Update Japanese and Turkish --- public/locales/ja-JP.json | 10 +++++----- public/locales/tr-TR.json | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/locales/ja-JP.json b/public/locales/ja-JP.json index 57b86243..b8dd8421 100644 --- a/public/locales/ja-JP.json +++ b/public/locales/ja-JP.json @@ -43,13 +43,13 @@ "sections": { "featureMenu": { "openType": { - "title": "Feature menu settings", + "title": "フィーチャー・メニュー設定", "select": { - "label": "Menu Activation Type", - "title": "Select the method to activate the feature menu", + "label": "メニューの有効化型", + "title": "フィーチャー・メニューを有効化にする方法を選択します", "options": { - "click": "Click", - "hover": "Hover" + "click": "ボタンクリック", + "hover": "マウスホバー" } } } diff --git a/public/locales/tr-TR.json b/public/locales/tr-TR.json index 249f7886..fdbabd6a 100644 --- a/public/locales/tr-TR.json +++ b/public/locales/tr-TR.json @@ -43,13 +43,13 @@ "sections": { "featureMenu": { "openType": { - "title": "Feature menu settings", + "title": "Özellik menüsü ayarları", "select": { - "label": "Menu Activation Type", - "title": "Select the method to activate the feature menu", + "label": "Menü Aktivasyon Türü", + "title": "Özellik menüsünü etkinleştirme yöntemini seçin", "options": { - "click": "Click", - "hover": "Hover" + "click": "Tıkla", + "hover": "İmleci Üzerine Getir" } } }