Skip to content

Commit

Permalink
add charset to PO header (closes #47)
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Jul 12, 2016
1 parent 1ea78ea commit 33330c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function xgettext(input, options, cb) {
if (Object.keys(context).length > 0 || options['force-po']) {
var po = gt.po.compile({
charset: options['from-code'],
headers: {
'content-type': 'text/plain; charset=' + options['from-code']
},
translations: {
'': context
}
Expand Down

0 comments on commit 33330c7

Please sign in to comment.