diff options
| author | 2025-09-05 16:57:34 -0400 | |
|---|---|---|
| committer | 2025-09-05 22:57:34 +0200 | |
| commit | de624dc8ce63ec819c61216d9d44f828841c293e (patch) | |
| tree | 5c14d7a1984e3ba6ee739a97edd1b2fe86b3c10f /Makefile | |
| parent | 2404a29ee559c953221187111150114ddce3766c (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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
