From 1850617f79c0ee92d57d8b7215e6e7be29f1ec43 Mon Sep 17 00:00:00 2001 From: warjiang <1096409085@qq.com> Date: Thu, 10 Oct 2024 12:10:26 +0800 Subject: [PATCH] feat: update locale file format & add extra log Signed-off-by: warjiang <1096409085@qq.com> --- ui/packages/i18n-tool/src/scan/translate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/packages/i18n-tool/src/scan/translate.js b/ui/packages/i18n-tool/src/scan/translate.js index 85778ca..30ab75a 100644 --- a/ui/packages/i18n-tool/src/scan/translate.js +++ b/ui/packages/i18n-tool/src/scan/translate.js @@ -1,9 +1,11 @@ const fs = require("node:fs"); const translators = require('@karmada/translators') +const {getDebug} = require("../utils"); const {BaiduTranslator, DeepLTranslator, OpenAITranslator} = translators; - +const debug = getDebug('translate'); async function translate(i18nMap, translateOpts) { + debug("translateOpts: %O", translateOpts) const translator = initTranslator(translateOpts); const i18nMapKeys = Object.keys(i18nMap);