Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gettext-parser

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gettext-parser - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

29

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc