From 8b88dd158998fd14bd4a4d9fd091aaf843435e48 Mon Sep 17 00:00:00 2001 From: Jay McPartland Date: Mon, 9 Dec 2024 16:25:48 +0000 Subject: [PATCH] Add command to compile l10n PHP files --- composer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9391308e..f2c9dce7 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,13 @@ "updatePoMo": [ "wp i18n update-po wp-content/themes/humanity-theme/languages/amnesty.pot", "wp i18n make-mo wp-content/themes/humanity-theme/languages", - "wp i18n make-json wp-content/themes/humanity-theme/languages --no-purge" + "wp i18n make-json wp-content/themes/humanity-theme/languages --no-purge", + "wp i18n make-php wp-content/themes/humanity-theme/languages" ] }, "scripts-descriptions": { "lint": "Runs PHP coding standard checks", "makePot": "Re-generates the POT language file", - "UpdatePoMo": "Updates PO, MO, and JSON translation files" + "UpdatePoMo": "Updates PO, MO, JSON, and PHP translation files" } }