mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-11 13:40:20 +02:00
add localize tool - reliably check, read, and write language files
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Thin wrapper around localize.py — see that file's docstring for full usage.
|
||||
#
|
||||
# Examples:
|
||||
# ./scripts/localize.sh --check
|
||||
# ./scripts/localize.sh --list --lang de
|
||||
# ./scripts/localize.sh --get --lang en --key node.title
|
||||
# ./scripts/localize.sh --write --lang es --key node.checkingNodeStatusTitle "Comprobando estado"
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
PYTHON_BIN="${PYTHON_BIN:-python3}"
|
||||
|
||||
exec "$PYTHON_BIN" "$SCRIPT_DIR/localize.py" "$@"
|
||||
Reference in New Issue
Block a user