Skip to content

Commit

Permalink
Merge branch 'master' into rnmobile/upload_media_failed_state
Browse files Browse the repository at this point in the history
  • Loading branch information
marecar3 committed Jan 30, 2019
2 parents 7022790 + 5a8d276 commit 45ec452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/babel-plugin-makepot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.1.1 (Unreleased)

### Bug Fix

- Fixed Babel plugin for POT file generation to properly handle plural numbers specified in the passed header. ([#13577](https://github.com/WordPress/gutenberg/pull/13577))

## 2.1.0 (2018-09-05)

### New Feature
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-makepot/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ module.exports = function() {
// Attempt to exract nplurals from header
const pluralsMatch = ( baseData.headers[ 'plural-forms' ] || '' ).match( /nplurals\s*=\s*(\d+);/ );
if ( pluralsMatch ) {
nplurals = pluralsMatch[ 1 ];
nplurals = parseInt( pluralsMatch[ 1 ], 10 );
}
}

Expand Down

0 comments on commit 45ec452

Please sign in to comment.