Socket
Socket
Sign inDemoInstall

@wordpress/i18n

Package Overview
Dependencies
Maintainers
25
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/i18n - npm Package Compare versions

Comparing version 4.16.0 to 4.16.1-next.957ca95e4c.0

7

package.json
{
"name": "@wordpress/i18n",
"version": "4.16.0",
"version": "4.16.1-next.957ca95e4c.0",
"description": "WordPress internationalization (i18n) library.",

@@ -33,5 +33,4 @@ "author": "The WordPress Contributors",

"@babel/runtime": "^7.16.0",
"@wordpress/hooks": "^3.16.0",
"@wordpress/hooks": "^3.16.1-next.957ca95e4c.0",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.21",
"memize": "^1.1.0",

@@ -44,3 +43,3 @@ "sprintf-js": "^1.1.1",

},
"gitHead": "171b87c7465b93e685e081c5f57f153507363c95"
"gitHead": "272a74bbbaab10ee24424eafe9578e705fbfbbb4"
}

@@ -7,3 +7,2 @@ #!/usr/bin/env node

const gettextParser = require( 'gettext-parser' );
const { isEmpty } = require( 'lodash' );
const fs = require( 'fs' );

@@ -51,4 +50,4 @@

if ( ! isEmpty( comments ) ) {
if ( ! isEmpty( comments.reference ) ) {
if ( Object.values( comments ).length ) {
if ( comments.reference ) {
// All references are split by newlines, add a // Reference prefix to make them tidy.

@@ -64,3 +63,3 @@ php +=

if ( ! isEmpty( comments.translator ) ) {
if ( comments.translator ) {
// All extracted comments are split by newlines, add a tab to line them up nicely.

@@ -74,3 +73,3 @@ const translator = comments.translator

if ( ! isEmpty( comments.extracted ) ) {
if ( comments.extracted ) {
php +=

@@ -84,4 +83,4 @@ TAB + `/* translators: ${ comments.extracted } */${ NEWLINE }`;

if ( isEmpty( translation.msgid_plural ) ) {
if ( isEmpty( context ) ) {
if ( ! translation.msgid_plural ) {
if ( ! context ) {
php += TAB + `__( '${ original }', '${ textdomain }' )`;

@@ -96,3 +95,3 @@ } else {

if ( isEmpty( context ) ) {
if ( ! context ) {
php +=

@@ -99,0 +98,0 @@ TAB +

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