aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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