Using correct newline
This commit is contained in:
parent
2d2741477b
commit
dfec7a4789
2 changed files with 2 additions and 2 deletions
|
@ -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'),
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue