diff --git a/package.json b/package.json index f5742ef..55e1afe 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/themes/block-theme/composer.json b/packages/themes/block-theme/composer.json index d6f756a..f488086 100644 --- a/packages/themes/block-theme/composer.json +++ b/packages/themes/block-theme/composer.json @@ -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", diff --git a/packages/themes/block-theme/package.json b/packages/themes/block-theme/package.json index b123c8b..029e6ee 100644 --- a/packages/themes/block-theme/package.json +++ b/packages/themes/block-theme/package.json @@ -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" } } diff --git a/packages/themes/block-theme/style.css b/packages/themes/block-theme/style.css index 57656f4..c64fcd9 100644 --- a/packages/themes/block-theme/style.css +++ b/packages/themes/block-theme/style.css @@ -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. diff --git a/turbo.json b/turbo.json index cbda879..9ac1189 100644 --- a/turbo.json +++ b/turbo.json @@ -10,6 +10,10 @@ }, "clean": { "cache": false + }, + "i18n:make-pot": { + "dependsOn": ["^i18n:make-pot"], + "cache": false } } }