The dictionary layer shipped with en/zh only, so the five other translations were stranded outside the release while the notes described a bilingual UI. Register them: seven languages, 1001 keys each, all typed against `Dict` so a missing key fails the build instead of rendering the raw key. Also align `__version__`, which had stayed at 1.4.1 through the 1.5.0 and 1.5.1 releases, leaving /api/health and the OpenAPI schema reporting a stale version. The bat scripts now emit English so non-Chinese locales render them correctly. Docs: docs/changelogs/2026-09-16-multilingual-ui.md
36 lines
1.0 KiB
Batchfile
36 lines
1.0 KiB
Batchfile
@echo off
|
|
setlocal
|
|
set ROOT=%~dp0
|
|
set BACKEND=%ROOT%calliope-backend
|
|
set WEB=%ROOT%calliope-web
|
|
|
|
echo ============================================
|
|
echo Calliope first-time setup - idempotent, safe to re-run
|
|
echo ============================================
|
|
|
|
if not exist "%BACKEND%\.venv\Scripts\python.exe" (
|
|
echo [1/2] Creating venv and installing backend deps...
|
|
cd /d "%BACKEND%"
|
|
python -m venv .venv
|
|
call .venv\Scripts\activate.bat
|
|
.venv\Scripts\python -m pip install --upgrade pip
|
|
.venv\Scripts\pip install -e ".[dev]"
|
|
) else (
|
|
echo [1/2] Backend deps already installed - skipping
|
|
)
|
|
|
|
if not exist "%WEB%\node_modules" (
|
|
echo [2/2] Installing frontend deps, running npm install...
|
|
cd /d "%WEB%"
|
|
call npm install
|
|
) else (
|
|
echo [2/2] Frontend deps already installed - skipping
|
|
)
|
|
|
|
echo.
|
|
echo Setup complete.
|
|
echo Before the first launch, copy calliope_config.example.json to calliope_config.json
|
|
echo to configure LLM/ComfyUI, or configure them on the in-app Settings page.
|
|
echo.
|
|
pause
|