diff --git a/src/index.ts b/src/index.ts index 936e142..3c36dfc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -474,7 +474,7 @@ function createTranslator( fs.writeFileSync( path.resolve( evaluateFilePath(workingDir, dirStructure, targetLang), - sourceFile.name, + destinationFile.name, ), newContent, ); @@ -488,7 +488,7 @@ function createTranslator( fs.mkdirSync(languageCachePath); } fs.writeFileSync( - path.resolve(languageCachePath, sourceFile.name), + path.resolve(languageCachePath, destinationFile.name), JSON.stringify(translatedFile, null, 2) + '\n', ); }