Skip to content

Commit 3276203

Browse files
committed
ci: fix not translatable keys in translation
1 parent c539c3e commit 3276203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js/translateStrings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async function _processLang(lang) {
168168
console.log(`Translating ${Object.keys(pendingTranslate).length} strings to`, lang);
169169
const aiTranslations = await coreAiTranslate(pendingTranslate, lang);
170170
const allRootKeys = new Set(Object.keys(rootStrings));
171-
for(let rootKey of Object.keys(aiTranslations)){
171+
for(let rootKey of Object.keys(pendingTranslate)){
172172
if(!allRootKeys.has(rootKey)){
173173
// AI hallucinated a root key?
174174
const errorStr = `AI translated for a root key that doesnt exist!!! in ${lang}: ${rootKey} \nTranslation: ${aiTranslations[rootKey]}`;

0 commit comments

Comments
 (0)