Skip to content

Commit

Permalink
Revert "Update index.ts"
Browse files Browse the repository at this point in the history
This reverts commit 520f2a3.

Fixes #52
  • Loading branch information
leolabs committed Jul 18, 2021
1 parent 46c9c27 commit 40ba747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function createTranslator(
fs.writeFileSync(
path.resolve(
evaluateFilePath(workingDir, dirStructure, targetLang),
sourceFile.name,
destinationFile.name,
),
newContent,
);
Expand All @@ -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',
);
}
Expand Down

0 comments on commit 40ba747

Please sign in to comment.