From 40ba747646298bd6127270d8452e2a46b3d8e931 Mon Sep 17 00:00:00 2001 From: Leo Bernard Date: Sun, 18 Jul 2021 17:11:34 +0200 Subject: [PATCH] Revert "Update index.ts" This reverts commit 520f2a30cb63d884997b0436e9ae3cfe5f173e34. Fixes #52 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ); }