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

i18next-conv

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-conv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/plurals.js

4

lib/gettextWrapper.js
var Gettext = require("node-gettext")
, i18next = require("i18next")
, plurals = require("./plurals")
, fs = require("fs")

@@ -83,3 +83,3 @@ , path = require("path")

} else {
var ext = i18next.pluralExtensions.rules[domain.split('-')[0]];
var ext = plurals.rules[domain.split('-')[0]];

@@ -86,0 +86,0 @@ for (var i = 0, len = values.length; i < len; i++) {

@@ -6,3 +6,3 @@ {

, "keywords": ["i18next", "gettext"]
, "version": "0.0.1"
, "version": "0.0.2"
, "private": false

@@ -21,4 +21,2 @@ , "preferGlobal": "true"

, "commander": "*"
, "i18next": "*"
, "express": "*"
, "colors": "*"

@@ -25,0 +23,0 @@ }

@@ -16,14 +16,17 @@ # Introduction

__for help:__
````
for help:
i18next-conv -h
````
to convert a .mo or .po file to json:
__to convert a .mo or .po file to json:__
````
i18next-conv -l [domain] -s [sourcePath] -t [targetPath]
````
eg.: i18next-conv -l en -s ./locales/en.po -t ./locales/en/translation.json
````

@@ -33,3 +36,3 @@ _if no target (-t) is specified file will be stored to [sourceDir]/[domain]/translation.json._

# All credits got to
# All credits go to

@@ -36,0 +39,0 @@ - [andri9's node-gettext](https://github.com/andris9/node-gettext) for parsing .mo and .po files

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