Skip to content

Commit

Permalink
Exclude the tests folder from the makepot processing #177
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 15, 2021
1 parent ee83760 commit e69e26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"start": "wp-scripts start",
"packages-update": "wp-scripts packages-update",
"dev": "wp-scripts start",
"makepot": "wp i18n make-pot . languages/oik.pot --exclude=node_modules,vendor,src/*.js",
"makepot": "wp i18n make-pot . languages/oik.pot --ignore-domain --exclude=node_modules,vendor,src/*.js,tests",
"makejson": "wp i18n make-json languages --no-purge",
"l10n": "l10n oik"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/test-includes-bw_register.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ function test_bw_default_labels_pages() {
}

/**
* Note: "Pages" is not in the oik text domain so this won't be translated
* in the generated labels.
* Note: "Pages" is not expected to be in the oik text domain so this won't be translated
* in the generated labels. Files in the tests folder should be excluded from makepot processing.
*/
function test_bw_default_labels_pages_bb_BB() {
$this->switch_to_locale( 'bb_BB' );
Expand Down

0 comments on commit e69e26d

Please sign in to comment.