@wordpress/babel-plugin-makepot 4.3.2 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +13 -14
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -332,10 +332,8 @@ module.exports = () => {
|
|
|
332
332
|
forEach(
|
|
333
333
|
sortedTranslations,
|
|
334
334
|
( translation ) => {
|
|
335
|
-
const {
|
|
336
|
-
|
|
337
|
-
msgid,
|
|
338
|
-
} = translation;
|
|
335
|
+
const { msgctxt = '', msgid } =
|
|
336
|
+
translation;
|
|
339
337
|
if (
|
|
340
338
|
! memo.hasOwnProperty( msgctxt )
|
|
341
339
|
) {
|
|
@@ -349,16 +347,17 @@ module.exports = () => {
|
|
|
349
347
|
memo[ msgctxt ][ msgid ]
|
|
350
348
|
)
|
|
351
349
|
) {
|
|
352
|
-
translation.comments.reference =
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
.
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
350
|
+
translation.comments.reference =
|
|
351
|
+
uniq(
|
|
352
|
+
[
|
|
353
|
+
memo[ msgctxt ][ msgid ]
|
|
354
|
+
.comments.reference,
|
|
355
|
+
translation.comments
|
|
356
|
+
.reference,
|
|
357
|
+
]
|
|
358
|
+
.join( '\n' )
|
|
359
|
+
.split( '\n' )
|
|
360
|
+
).join( '\n' );
|
|
362
361
|
}
|
|
363
362
|
|
|
364
363
|
memo[ msgctxt ][ msgid ] = translation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/babel-plugin-makepot",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "WordPress Babel internationalization (i18n) plugin.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
|
|
41
41
|
}
|