Skip to content

Commit 2117bd8

Browse files
authored
Merge pull request #157 from yuryleb/lf-linebreaks
Force LF line breaks for JS & JSON files
2 parents d0fdcc8 + a49e6d4 commit 2117bd8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.js text eol=lf
2+
*.json text eol=lf

scripts/transifex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ languages.supportedCodes.forEach((code) => {
3939
}
4040

4141
// Write language file
42-
fs.writeFileSync(`${__dirname}/../languages/translations/${code}.json`, JSON.stringify(content, null, 4));
42+
fs.writeFileSync(`${__dirname}/../languages/translations/${code}.json`, JSON.stringify(content, null, 4) + '\n');
4343
});
4444
});

0 commit comments

Comments
 (0)