i18m: auto import FR Translations from lms/translations/fr.csv
This commit is contained in:
@@ -18,12 +18,12 @@ services:
|
|||||||
|
|
||||||
frappe:
|
frappe:
|
||||||
image: frappe/bench:latest
|
image: frappe/bench:latest
|
||||||
command: bash /workspace/init.sh
|
command: bash /workspace/docker/init.sh
|
||||||
environment:
|
environment:
|
||||||
- SHELL=/bin/bash
|
- SHELL=/bin/bash
|
||||||
working_dir: /home/frappe
|
working_dir: /home/frappe
|
||||||
volumes:
|
volumes:
|
||||||
- .:/workspace
|
- ..:/workspace
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
- 9000:9000
|
- 9000:9000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then
|
if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then
|
||||||
echo "Bench already exists, skipping init"
|
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 --site lms.localhost clear-cache
|
||||||
bench use lms.localhost
|
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
|
bench start
|
||||||
|
|||||||
Reference in New Issue
Block a user