gettext-parser
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -30,3 +30,3 @@ var encoding = require("encoding"), | ||
this._charset = "utf-8"; | ||
this._file = fileContents; | ||
this._fileContents = fileContents; | ||
}else{ | ||
@@ -33,0 +33,0 @@ this._handleCharset(fileContents); |
{ | ||
"name": "gettext-parser", | ||
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author" : "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "homepage": "http://github.com/andris9/gettext-parser", |
@@ -77,3 +77,3 @@ gettext-parser | ||
"another context":{ | ||
"example":{ | ||
"%s example":{ | ||
"msgctx": "another context", | ||
@@ -80,0 +80,0 @@ "msgid": "%s example", |
@@ -18,2 +18,16 @@ var gettextParser = require(".."), | ||
module.exports["UTF-8 as string"] = { | ||
setUp: function(callback){ | ||
this.po = fs.readFileSync(__dirname + "/fixtures/utf8.po", 'utf-8'); | ||
this.json = JSON.parse(fs.readFileSync(__dirname + "/fixtures/utf8-po.json", "utf-8")); | ||
callback(); | ||
}, | ||
parse: function(test){ | ||
var parsed = gettextParser.po.parse(this.po); | ||
test.deepEqual(parsed, this.json); | ||
test.done(); | ||
} | ||
} | ||
module.exports["Latin-13"] = { | ||
@@ -20,0 +34,0 @@ setUp: function(callback){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61337
1481