aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2025-09-05 16:57:34 -0400
committerGravatar GitHub <noreply@github.com> 2025-09-05 22:57:34 +0200
commitde624dc8ce63ec819c61216d9d44f828841c293e (patch)
tree5c14d7a1984e3ba6ee739a97edd1b2fe86b3c10f /Makefile
parent2404a29ee559c953221187111150114ddce3766c (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
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