Skip to content

Commit

Permalink
feat: update locale file format & add extra log
Browse files Browse the repository at this point in the history
Signed-off-by: warjiang <[email protected]>
  • Loading branch information
warjiang committed Oct 10, 2024
1 parent b3d8b91 commit 1850617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/packages/i18n-tool/src/scan/translate.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 1850617

Please sign in to comment.