handlebars-xgettext
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -56,7 +56,9 @@ var fs = require('fs'), | ||
context[msgid].comments.reference = (context[msgid].comments.reference || '') | ||
.split('\n') | ||
.concat(strings[msgid].line.map(addPath(relativePath))) | ||
.join('\n') | ||
.trim('\n'); | ||
if (!options['no-location']) { | ||
context[msgid].comments.reference = (context[msgid].comments.reference || '') | ||
.split('\n') | ||
.concat(strings[msgid].line.map(addPath(relativePath))) | ||
.join('\n') | ||
.trim('\n'); | ||
} | ||
} | ||
@@ -63,0 +65,0 @@ } |
{ | ||
"name": "handlebars-xgettext", | ||
"description": "Extract strings from Handlebars source", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"homepage": "https://github.com/gmarty/handlebars-xgettext", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,3 +0,2 @@ | ||
[![build status](https://secure.travis-ci.org/gmarty/handlebars-xgettext.png)](http://travis-ci.org/gmarty/handlebars-xgettext) | ||
# handlebars-xgettext | ||
# handlebars-xgettext [![build status](https://secure.travis-ci.org/gmarty/handlebars-xgettext.png)](http://travis-ci.org/gmarty/handlebars-xgettext) | ||
> Extract strings from Handlebars source | ||
@@ -22,2 +21,5 @@ | ||
<button>{{_ "Sign in"}}</button> | ||
<!-- and a simple plural example: --> | ||
<p>{{count}} {{_ "country" "countries" count}}</p> | ||
``` | ||
@@ -24,0 +26,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
88
1
0
11716
9
125