Skip to content

Commit

Permalink
Merge pull request #4 from rzasap/master
Browse files Browse the repository at this point in the history
Append new line to prevents git conflicts
  • Loading branch information
patryk1303 authored Dec 16, 2020
2 parents 8feef0d + 731f64f commit 0204a21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aem-polyglot",
"version": "0.3.0",
"version": "0.3.1",
"description": "translate i18n dictionairies with ease using Google Translate. Tool designed mainly for developers. ",
"repository": "https://github.com/zietas/aem-polyglot",
"main": "src/index.js",
Expand Down Expand Up @@ -54,6 +54,6 @@
},
"engines": {
"node": ">=8.0.0",
"npm": ">-5.0.0"
"npm": ">=5.0.0"
}
}
2 changes: 1 addition & 1 deletion src/dictionaryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function saveDict (jsonDict, target) {
xml = XML_DECLARATION + xml;
xml = _.replace(xml, /\n[ ]*\/>/mg, '/>');
xml = _.replace(xml, /\n[ ]*>/mg, '>');
fs.writeFile(target, xml, 'utf-8', (err) => {
fs.writeFile(target, xml+'\n', 'utf-8', (err) => {
if (err) {
reject(err);
} else {
Expand Down

0 comments on commit 0204a21

Please sign in to comment.