diff --git a/packages/babel-plugin-makepot/CHANGELOG.md b/packages/babel-plugin-makepot/CHANGELOG.md index 26ea6ae682756c..12cddacaf21f88 100644 --- a/packages/babel-plugin-makepot/CHANGELOG.md +++ b/packages/babel-plugin-makepot/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Bug Fix + +- Makepot: Fix translations object handling ([#43797](https://github.com/WordPress/gutenberg/pull/43797)). + ## 5.0.0 (2022-08-24) ### Breaking Change diff --git a/packages/babel-plugin-makepot/index.js b/packages/babel-plugin-makepot/index.js index 32cb35dcc40c3b..1e96eb63b6027c 100644 --- a/packages/babel-plugin-makepot/index.js +++ b/packages/babel-plugin-makepot/index.js @@ -330,7 +330,7 @@ module.exports = () => { for ( const context in strings[ file ] ) { // Within the same file, sort translations by line. const sortedTranslations = sortByReference( - strings[ file ][ context ] + Object.values( strings[ file ][ context ] ) ); forEach(