We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c539c3e commit 3276203Copy full SHA for 3276203
gulpfile.js/translateStrings.js
@@ -168,7 +168,7 @@ async function _processLang(lang) {
168
console.log(`Translating ${Object.keys(pendingTranslate).length} strings to`, lang);
169
const aiTranslations = await coreAiTranslate(pendingTranslate, lang);
170
const allRootKeys = new Set(Object.keys(rootStrings));
171
- for(let rootKey of Object.keys(aiTranslations)){
+ for(let rootKey of Object.keys(pendingTranslate)){
172
if(!allRootKeys.has(rootKey)){
173
// AI hallucinated a root key?
174
const errorStr = `AI translated for a root key that doesnt exist!!! in ${lang}: ${rootKey} \nTranslation: ${aiTranslations[rootKey]}`;
0 commit comments