i18m: auto import FR Translations from lms/translations/fr.csv

This commit is contained in:
Youssef
2025-08-10 12:28:50 -04:00
parent 1660f69930
commit a147aca24f
2 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!bin/bash
#!/bin/bash
if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then
echo "Bench already exists, skipping init"
@@ -37,4 +37,10 @@ bench --site lms.localhost set-config developer_mode 1
bench --site lms.localhost clear-cache
bench use lms.localhost
# Import French translations from workspace (persisted in repo)
if [ -f "/workspace/lms/translations/fr.csv" ]; then
bench --site lms.localhost import-translations fr /workspace/lms/translations/fr.csv || true
bench --site lms.localhost clear-cache
fi
bench start