All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 45s
- Implemented `fill-de-extended-gaps.js` to fill missing billing/orders keys in de-extended from de. - Created `fill-i18n-deep.py` for deep translation of locale JSONs using deep-translator with fallback options. - Added `fill-i18n-locales.js` to translate locale JSONs and write overrides for untranslated keys. - Introduced `fix-en-leaks.py` to translate keys that still match the en-US merge, addressing English leaks. - Developed `patch-de-ch-swiss.js` to replace 'ß' with 'ss' in de-CH.json without deleting existing entries. - Created `patch-en-gb-au.js` to apply UK/AU spelling corrections in en-GB and en-AU locales. - Added shell scripts `run-fix-en-leaks.sh` and `run-i18n-deep-fill.sh` for sequential execution of translation tasks. - Implemented `update-i18n-todo-stats.js` to update statistics in the I18N_TODO.md file based on translation completeness.
22 lines
733 B
Bash
Executable File
22 lines
733 B
Bash
Executable File
#!/usr/bin/env bash
|
||
# Sequentieller Deep-Fill – eine Locale nach der anderen, mit Fortschritts-Log.
|
||
set -euo pipefail
|
||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||
PY="$ROOT/scripts/.venv-i18n/bin/python"
|
||
LOG="${TMPDIR:-/tmp}/i18n-deep-fill.log"
|
||
# Nur noch offene Locales (fr/es/it bereits gefüllt)
|
||
LOCALES=(pl ja zh th tl fil)
|
||
|
||
: >"$LOG"
|
||
echo "[$(date -Iseconds)] start" | tee -a "$LOG"
|
||
|
||
for loc in "${LOCALES[@]}"; do
|
||
echo "[$(date -Iseconds)] === $loc ===" | tee -a "$LOG"
|
||
if ! PYTHONUNBUFFERED=1 "$PY" -u "$ROOT/scripts/fill-i18n-deep.py" --locale "$loc" --delay 0.2 2>&1 | tee -a "$LOG"; then
|
||
echo "[$(date -Iseconds)] FAILED $loc" | tee -a "$LOG"
|
||
exit 1
|
||
fi
|
||
done
|
||
|
||
echo "[$(date -Iseconds)] ALL DONE" | tee -a "$LOG"
|