这是indexloc提供的服务,不要输入任何密码
Skip to content

Use offical WP-CLI i18n package to generate POT file. #397

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

Merged
merged 9 commits into from
Jan 17, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.2'
coverage: none
tools: cs2pr

Expand Down
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"core": null,
"phpVersion": "7.4",
"phpVersion": "8.2",
"themes": ["."],
"port": 5890,
"env": {
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"type": "wordpress-theme",
"homepage": "https://rtcamp.com/",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=8.2"
},
"require-dev": {
"wp-coding-standards/wpcs": "^2.3",
"phpcompatibility/phpcompatibility-wp": "^2.1",
Expand All @@ -12,7 +15,8 @@
"sirbrillig/phpcs-variable-analysis": "^2.11.3",
"phpunit/phpunit": "^9.5",
"wp-phpunit/wp-phpunit": "^6.0",
"yoast/phpunit-polyfills": "^3.0"
"yoast/phpunit-polyfills": "^3.0",
"wp-cli/i18n-command": "^2.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -39,6 +43,7 @@
"phpcs:fix": "@php ./vendor/bin/phpcbf",
"post-install-cmd": [
"npm i"
]
],
"pot": "wp i18n make-pot . ./languages/elementary-theme.pot --domain=elementary-theme --include=\"inc,patterns,assets/build/js\""
}
}
Loading
Loading