Socket
Socket
Sign inDemoInstall

i18next-conv

Package Overview
Dependencies
21
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.0 to 10.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 10.0.1
- Due to a refactoring in `gettext-parser`, it now expects translation tables to contain `msgstr` properties as arrays (strings are not allowed anymore). This patch arrifies this property and adds a regression test
### 10.0.0

@@ -2,0 +6,0 @@

8

lib/json2gettext.js

@@ -6,2 +6,4 @@ "use strict";

const arrify = require('arrify');
const plurals = require('./plurals');

@@ -114,3 +116,3 @@

msgid_plural: pArray.slice(1, pArray.length),
msgstr: kv.translated_value,
msgstr: arrify(kv.translated_value),
comments: {

@@ -155,3 +157,3 @@ reference: [kv.key]

msgid: kv.value,
msgstr: kv.translated_value,
msgstr: arrify(kv.translated_value),
comments: {

@@ -170,3 +172,3 @@ reference: [kv.key]

msgid: kv.key,
msgstr: kv.value
msgstr: arrify(kv.value)
};

@@ -173,0 +175,0 @@ }

@@ -9,3 +9,3 @@ {

],
"version": "10.0.0",
"version": "10.0.1",
"private": false,

@@ -25,2 +25,3 @@ "main": "lib",

"dependencies": {
"arrify": "^2.0.1",
"chalk": "^4.0.0",

@@ -27,0 +28,0 @@ "commander": "^5.1.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc