2
0
forked from jmug/cactoide

fix: the i18n checker script

This commit is contained in:
Levente Orban
2025-11-08 22:14:00 +01:00
parent 719cd23350
commit 6155cc44da
2 changed files with 88 additions and 188 deletions

View File

@@ -22,7 +22,7 @@ help:
@echo " logs - Show logs from all services"
@echo " db-clean - Clean up all Docker resources"
@echo " prune - Clean up everything (containers, images, volumes)"
@echo " i18n - Validate translation files"
@echo " i18n - List missing keys in translation file (use FILE=path/to/file.json)"
@echo " lint - Lint the project"
@echo " format - Format the project"
@echo " migrate-up - Apply invite-only events migration"
@@ -94,8 +94,10 @@ format:
@echo "Formatting the project..."
npm run format
#TODO: not working yet
# List missing keys in a translation file
i18n:
@echo "Validating translation files..."
@if [ -n "$(FILE)" ]; then \
./scripts/i18n-check.sh $(FILE); \
@if [ -z "$(FILE)" ]; then \
echo "Error: FILE variable is required. Example: make i18n FILE=src/lib/i18n/it.json"; \
exit 1; \
fi
@./scripts/i18n-check.sh --missing-only $(FILE)