Skip to content

Commit d7cdead

Browse files
committed
update composer packges add i18n scripts
1 parent 66259e5 commit d7cdead

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

composer.json

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,44 @@
3939
}
4040
],
4141
"require": {
42-
"mustache/mustache": "^2.14",
43-
"wp-cli/wp-config-transformer": "^1.3",
44-
"newfold-labs/wp-module-onboarding-data": "^1.2",
45-
"newfold-labs/wp-module-patterns": "^2.5",
46-
"newfold-labs/wp-module-facebook": "^1.0",
47-
"newfold-labs/wp-module-migration": "^1.0",
42+
"mustache/mustache": "^2.14.2",
43+
"wp-cli/wp-config-transformer": "^1.4.1",
44+
"newfold-labs/wp-module-onboarding-data": "^1.2.1",
45+
"newfold-labs/wp-module-patterns": "^2.6",
46+
"newfold-labs/wp-module-facebook": "^1.0.9",
47+
"newfold-labs/wp-module-migration": "^1.0.12",
4848
"wp-forge/helpers": "^2.0"
4949
},
5050
"require-dev": {
51-
"wp-phpunit/wp-phpunit": "^6.2",
52-
"yoast/phpunit-polyfills": "^2.0",
53-
"newfold-labs/wp-php-standards": "^1.2",
54-
"wp-cli/i18n-command": "^2.4.3"
51+
"wp-phpunit/wp-phpunit": "^6.6.2",
52+
"yoast/phpunit-polyfills": "^2.0.2",
53+
"newfold-labs/wp-php-standards": "^1.2.4",
54+
"wp-cli/i18n-command": "^2.6.3"
5555
},
5656
"scripts": {
5757
"lint": [
5858
"vendor/bin/phpcs . --standard=Newfold"
5959
],
6060
"clean": [
6161
"vendor/bin/phpcbf . --standard=Newfold"
62+
],
63+
"i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-onboarding.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-onboarding/issues\",\"POT-Creation-Date\":\"2024-11-18T07:59:34+00:00\"}' --exclude=assets,tests,src",
64+
"i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-onboarding.pot ./languages",
65+
"i18n-mo": "vendor/bin/wp i18n make-mo ./languages",
66+
"i18n-json": "rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --no-purge --pretty-print",
67+
"i18n": [
68+
"@i18n-pot",
69+
"@i18n-po",
70+
"@i18n-mo"
6271
]
72+
},
73+
"scripts-descriptions": {
74+
"lint": "Check files against coding standards.",
75+
"clean": "Automatically fix coding standards issues where possible.",
76+
"i18n": "Generate new language files.",
77+
"i18n-pot": "Generate a .pot file for translation.",
78+
"i18n-po": "Update existing .po files.",
79+
"i18n-mo": "Generate new language .mo files.",
80+
"i18n-json": "Generate new language .json files."
6381
}
6482
}

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

languages/wp-module-onboarding.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: \n"
4-
"Report-Msgid-Bugs-To: https://github.com/wp-module-onboarding/issues\n"
4+
"Report-Msgid-Bugs-To: https://github.com/newfold-labs/wp-module-onboarding/issues\n"
55
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
66
"Language-Team: LANGUAGE <[email protected]>\n"
77
"MIME-Version: 1.0\n"

0 commit comments

Comments
 (0)