From 9ce882ba39b131ad5be89071bd33ff599edeaf4e Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 14 Apr 2024 17:18:22 +0800 Subject: [PATCH] refactor: update translation --- src/client/i18next-toolkit.config.cjs | 8 ++++---- src/client/public/locales/de/translation.json | 5 +---- src/client/public/locales/fr/translation.json | 4 +--- src/client/public/locales/jp/translation.json | 4 +--- src/client/public/locales/ru/translation.json | 3 +-- src/client/public/locales/zh/translation.json | 3 +-- 6 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/client/i18next-toolkit.config.cjs b/src/client/i18next-toolkit.config.cjs index d8fbded..ce05a00 100644 --- a/src/client/i18next-toolkit.config.cjs +++ b/src/client/i18next-toolkit.config.cjs @@ -2,6 +2,10 @@ const config = { locales: ['en', 'zh', 'jp', 'fr', 'de', 'ru'], verbose: true, + translator: { + type: 'openai', + model: 'gpt-4' + }, scanner: { autoImport: false, ignoreText: [ @@ -40,10 +44,6 @@ const config = { 'YYYY-MM-DD HH:mm', ], }, - translator: { - type: 'openai', - model: 'gpt-4' - }, }; module.exports = config; diff --git a/src/client/public/locales/de/translation.json b/src/client/public/locales/de/translation.json index 49ac582..de46c02 100644 --- a/src/client/public/locales/de/translation.json +++ b/src/client/public/locales/de/translation.json @@ -265,8 +265,5 @@ "kfdaf0bb3": "Zuletzt online: {{time}}", "kfe11d138": "Name", "kfedb6cd8": "Sind Sie sicher, dass Sie alle Ereignisse für diesen Monitor löschen möchten?", - "kff849f78": "Automatisch abrufen", - "k340547f": "Entschuldigung, aber etwas ist schief gelaufen", - "k646cae2": "HDD", - "k8bac6ae": "6h" + "kff849f78": "Automatisch abrufen" } diff --git a/src/client/public/locales/fr/translation.json b/src/client/public/locales/fr/translation.json index f05cdf3..490b722 100644 --- a/src/client/public/locales/fr/translation.json +++ b/src/client/public/locales/fr/translation.json @@ -265,7 +265,5 @@ "kfdaf0bb3": "Dernière connexion : {{time}}", "kfe11d138": "Nom", "kfedb6cd8": "Êtes-vous sûr de vouloir supprimer tous les événements pour ce moniteur ?", - "kff849f78": "Récupération automatique", - "k340547f": "Désolé, mais quelque chose s'est mal passé", - "k8bac6ae": "6h" + "kff849f78": "Récupération automatique" } diff --git a/src/client/public/locales/jp/translation.json b/src/client/public/locales/jp/translation.json index 2278a89..51aacfb 100644 --- a/src/client/public/locales/jp/translation.json +++ b/src/client/public/locales/jp/translation.json @@ -265,7 +265,5 @@ "kfdaf0bb3": "最後のオンライン:{{time}}", "kfe11d138": "名前", "kfedb6cd8": "このモニターのすべてのイベントを削除してもよろしいですか?", - "kff849f78": "自動取得", - "k340547f": "申し訳ありませんが、何か問題が発生しました", - "k646cae2": "HDD" + "kff849f78": "自動取得" } diff --git a/src/client/public/locales/ru/translation.json b/src/client/public/locales/ru/translation.json index 8b2e3e9..26a2962 100644 --- a/src/client/public/locales/ru/translation.json +++ b/src/client/public/locales/ru/translation.json @@ -265,6 +265,5 @@ "kfdaf0bb3": "Последний онлайн: {{time}}", "kfe11d138": "Имя", "kfedb6cd8": "Вы уверены, что хотите удалить все события для этого монитора?", - "kff849f78": "Автоизвлечение", - "k340547f": "Извините, но что-то пошло не так" + "kff849f78": "Автоизвлечение" } diff --git a/src/client/public/locales/zh/translation.json b/src/client/public/locales/zh/translation.json index c0b3783..96b2252 100644 --- a/src/client/public/locales/zh/translation.json +++ b/src/client/public/locales/zh/translation.json @@ -265,6 +265,5 @@ "kfdaf0bb3": "最后在线时间:{{time}}", "kfe11d138": "名称", "kfedb6cd8": "您确定要删除此监控器的所有事件吗?", - "kff849f78": "自动获取", - "k340547f": "抱歉,出了点问题" + "kff849f78": "自动获取" }