mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-26 07:33:21 +03:00
fix(Translate Missings Script): ensure format of en.yml
This commit is contained in:
1 parent
102cfce37b
commit
8c97e191f4
1 file changed
+1
@@ -84,6 +84,7 @@ function unflattenYaml(flat) {
|
|||||||
async function syncTranslations(englishFile, targetFiles, dryRun = false) {
|
async function syncTranslations(englishFile, targetFiles, dryRun = false) {
|
||||||
const englishYaml = yaml.parse(await fs.readFile(englishFile, 'utf8'));
|
const englishYaml = yaml.parse(await fs.readFile(englishFile, 'utf8'));
|
||||||
const englishFlat = flattenYaml(englishYaml);
|
const englishFlat = flattenYaml(englishYaml);
|
||||||
|
await fs.writeFile(englishFile, yaml.stringify(unflattenYaml(englishFlat)), 'utf8');
|
||||||
|
|
||||||
let totalChars = 0;
|
let totalChars = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user