gettext-parser
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "gettext-parser", | ||
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "Andris Reinman", | ||
"homepage": "http://github.com/andris9/gettext-parser", | ||
"contributors": [ | ||
{ | ||
"name": "Sam Hauglustaine" | ||
} | ||
], | ||
"homepage": "http://github.com/smhg/gettext-parser", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/andris9/gettext-parser.git" | ||
"url": "http://github.com/smhg/gettext-parser.git" | ||
}, | ||
"scripts": { | ||
"test": "grunt" | ||
"test": "grunt", | ||
"preversion": "npm test", | ||
"postversion": "git push && git push --tags" | ||
}, | ||
@@ -17,11 +24,11 @@ "main": "./index", | ||
"dependencies": { | ||
"encoding": "^0.1.12" | ||
"encoding": "0.1.12" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"grunt": "^1.0.1", | ||
"grunt-cli": "^1.2.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-mocha-test": "^0.12.7", | ||
"mocha": "^2.5.3" | ||
"chai": "3.5.0", | ||
"grunt": "1.0.1", | ||
"grunt-cli": "1.2.0", | ||
"grunt-contrib-jshint": "1.1.0", | ||
"grunt-mocha-test": "0.13.2", | ||
"mocha": "3.2.0" | ||
}, | ||
@@ -28,0 +35,0 @@ "keywords": [ |
@@ -1,7 +0,5 @@ | ||
> **NB!** This project is **unmaintained!** If anyone wants to take over please write to andris.reinman@gmail.com to get ownership of this repo and npm package | ||
gettext-parser | ||
============== | ||
[![Build Status](https://secure.travis-ci.org/andris9/gettext-parser.png)](http://travis-ci.org/andris9/gettext-parser) | ||
[![Build Status](https://secure.travis-ci.org/smhg/gettext-parser.png)](http://travis-ci.org/smhg/gettext-parser) | ||
[![NPM version](https://badge.fury.io/js/gettext-parser.png)](http://badge.fury.io/js/gettext-parser) | ||
@@ -11,3 +9,3 @@ | ||
This module is slightly based on my other gettext related module [node-gettext](https://github.com/andris9/node-gettext). The plan is to move all parsing and compiling logic from node-gettext to here and leave only translation related functions (domains, plural handling, lookups etc.). | ||
This module is slightly based on another gettext related module [node-gettext](https://github.com/andris9/node-gettext). The plan is to move all parsing and compiling logic from node-gettext to here and leave only translation related functions (domains, plural handling, lookups etc.). | ||
@@ -157,7 +155,7 @@ ## Usage | ||
Translations can be found from the `translations` object which in turn holds context objects for `msgctx`. Default context can be found from `translations[""]`. | ||
Translations can be found from the `translations` object which in turn holds context objects for `msgctxt`. Default context can be found from `translations[""]`. | ||
Context objects include all the translations, where `msgid` value is the key. The value is an object with the following possible properties: | ||
* **msgctx** context for this translation, if not present the default context applies | ||
* **msgctxt** context for this translation, if not present the default context applies | ||
* **msgid** string to be translated | ||
@@ -188,3 +186,3 @@ * **msgid_plural** the plural form of the original string (might not be present) | ||
"%s example": { | ||
"msgctx": "another context", | ||
"msgctxt": "another context", | ||
"msgid": "%s example", | ||
@@ -191,0 +189,0 @@ "msgid_plural": "%s examples", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
75024
205
3
+ Addedencoding@0.1.12(transitive)
+ Addediconv-lite@0.4.24(transitive)
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
Updatedencoding@0.1.12