Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build POT files for plugins and themes from project root #541

Merged
merged 4 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"start": "turbo run start",
"clean": "turbo run clean && rm -rf node_modules",
"format": "prettier --write .",
"i18n:make-pot": "turbo run i18n:make-pot",
"lint": "npm-run-all --parallel lint:js lint:css lint:format",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
Expand Down
2 changes: 1 addition & 1 deletion packages/themes/block-theme/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"make-pot": [
"npm run build",
"wp i18n make-pot . languages/block-theme.pot --domain=block-theme --exclude=node_modules,src,vendor,theme.json,t2.json"
"wp i18n make-pot . --exclude=.turbo,node_modules,src,vendor,theme.json,t2.json"
],
"make-json": [
"npm run build",
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/block-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"build": "wp-scripts build --webpack-copy-php",
"start": "wp-scripts start --webpack-copy-php",
"clean": "rm -rf node_modules build dist .turbo"
"clean": "rm -rf node_modules build dist .turbo",
"i18n:make-pot": "composer run make-pot"
}
}
1 change: 1 addition & 0 deletions packages/themes/block-theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* License: GNU General Public License v2 or later
* License URI: LICENSE
* Text Domain: block-theme
* Domain Path: languages
* Tags: editor-style, featured-images, full-site-editing, block-patterns
*
* This theme, like WordPress, is licensed under the GPL.
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
},
"clean": {
"cache": false
},
"i18n:make-pot": {
"dependsOn": ["^i18n:make-pot"],
"cache": false
}
}
}
Loading