Using correct newline

This commit is contained in:
Dirk Baeumer 2018-03-28 14:30:27 +02:00
parent 2d2741477b
commit dfec7a4789
2 changed files with 2 additions and 2 deletions

View file

@ -1048,7 +1048,7 @@ function createI18nFile(originalFilePath, messages) {
}
var content = JSON.stringify(result, null, '\t');
if (process.platform === 'win32') {
content = content.replace(/\n/g, '/r/n');
content = content.replace(/\n/g, '\r\n');
}
return new File({
path: path.join(originalFilePath + '.i18n.json'),

View file

@ -1173,7 +1173,7 @@ function createI18nFile(originalFilePath: string, messages: any): File {
let content = JSON.stringify(result, null, '\t');
if (process.platform === 'win32') {
content = content.replace(/\n/g, '/r/n');
content = content.replace(/\n/g, '\r\n');
}
return new File({
path: path.join(originalFilePath + '.i18n.json'),