Skip to content

Commit

Permalink
Merge pull request #134 from warjiang/feature/i18n-locale-format
Browse files Browse the repository at this point in the history
feat: update locale file format & add extra log
  • Loading branch information
karmada-bot authored Oct 10, 2024
2 parents b3d8b91 + 1850617 commit 5e78ee8
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 5e78ee8

Please sign in to comment.