@wordpress/i18n
Advanced tools
Comparing version 4.16.0 to 4.16.1-next.957ca95e4c.0
{ | ||
"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 + |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6
227367
2917
1
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)