Skip to content

Commit 8c97e19

Browse files
committed
fix(Translate Missings Script): ensure format of en.yml
1 parent 102cfce commit 8c97e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/translate-missings.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ function unflattenYaml(flat) {
8484
async function syncTranslations(englishFile, targetFiles, dryRun = false) {
8585
const englishYaml = yaml.parse(await fs.readFile(englishFile, 'utf8'));
8686
const englishFlat = flattenYaml(englishYaml);
87+
await fs.writeFile(englishFile, yaml.stringify(unflattenYaml(englishFlat)), 'utf8');
8788

8889
let totalChars = 0;
8990

0 commit comments

Comments
 (0)