Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
forfolias authored Oct 6, 2018
2 parents 0876348 + 9b2d3cc commit 3cfe0c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
### 6.1.0

- add possibility to define custom POT-Creation-Date and PO-Revision-Date [74](https://github.com/i18next/i18next-gettext-converter/pull/74)

### 5.0.0

- Fix [Wrong Plural-Forms for Brazilian Portuguese](https://github.com/i18next/i18next-gettext-converter/issues/67)

### 4.0.3

- Fix -ks and other cli options

### 4.0.2

- Fix --project cli option

### 4.0.1

- Fix broken build

### 4.0.0

- Upgrades to node-gettext@2 (breaking, users may need to update filter option function)
- Adds project option
- Upgrades dependencies
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"i18next",
"gettext"
],
"version": "6.0.1",
"version": "6.1.0",
"private": false,
"main": "lib",
"files": [
Expand Down
2 changes: 2 additions & 0 deletions src/lib/json2gettext.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ function parseGettext(locale, data, options = {}) {
if (!options.noDate) {
out.headers['pot-creation-date'] = new Date().toISOString();
out.headers['po-revision-date'] = new Date().toISOString();
if (options.potCreationDate && typeof options.potCreationDate.toISOString === 'function') out.headers['pot-creation-date'] = options.potCreationDate.toISOString();
if (options.poRevisionDate && typeof options.poRevisionDate.toISOString === 'function') out.headers['po-revision-date'] = options.poRevisionDate.toISOString();
}
if (options.language) {
out.headers.language = options.language;
Expand Down

0 comments on commit 3cfe0c3

Please sign in to comment.