From de624dc8ce63ec819c61216d9d44f828841c293e Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 5 Sep 2025 16:57:34 -0400 Subject: Add new file in i18n (#7917) When manipulating I18N files, it is now possible to add a new file to all languages. This action is available both in the manipulation script and the makefile. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2c7bb8848..57aa76cd7 100644 --- a/Makefile +++ b/Makefile @@ -95,6 +95,14 @@ node_modules/.bin/rtlcss: npm install ##@ I18n +.PHONY: i18n-add-file +i18n-add-file: ## Add a new translation file to all supported languages +ifndef key + $(error To add a new file, you need to provide one in the "key" variable) +endif + @$(PHP) ./cli/manipulate.translation.php --action add --key $(key) + @echo File added. + .PHONY: i18n-add-key i18n-add-key: ## Add a translation key to all supported languages ifndef key -- cgit v1.2.3