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
31 lines
1.3 KiB
Batchfile
31 lines
1.3 KiB
Batchfile
@echo off
|
|
setlocal
|
|
set ROOT=%~dp0
|
|
set BACKEND=%ROOT%calliope-backend
|
|
set WEB=%ROOT%calliope-web
|
|
|
|
if not exist "%BACKEND%\.venv\Scripts\python.exe" (
|
|
echo [Error] Backend not installed - run setup.bat first
|
|
pause
|
|
exit /b 1
|
|
)
|
|
if not exist "%WEB%\node_modules" (
|
|
echo [Error] Frontend not installed - run setup.bat first
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "%ROOT%logs" mkdir "%ROOT%logs"
|
|
|
|
echo Starting backend in background... Log: logs\backend.log
|
|
powershell -NoProfile -Command "$p = Start-Process -FilePath '%ROOT%calliope-backend\.venv\Scripts\python.exe' -ArgumentList '-m','calliope.main','--host','127.0.0.1','--port','8247' -WorkingDirectory '%ROOT%calliope-backend' -RedirectStandardOutput '%ROOT%logs\backend.log' -RedirectStandardError '%ROOT%logs\backend.err.log' -PassThru -WindowStyle Hidden; Write-Host ('Backend PID -> ' + $p.Id)"
|
|
|
|
echo Starting frontend in background... Log: logs\web.log
|
|
powershell -NoProfile -Command "$p = Start-Process -FilePath 'npm.cmd' -ArgumentList 'run','dev' -WorkingDirectory '%ROOT%calliope-web' -RedirectStandardOutput '%ROOT%logs\web.log' -RedirectStandardError '%ROOT%logs\web.err.log' -PassThru -WindowStyle Hidden; Write-Host ('Web npm PID -> ' + $p.Id)"
|
|
|
|
echo.
|
|
echo Background services started:
|
|
echo Backend: http://127.0.0.1:8247
|
|
echo Frontend: http://127.0.0.1:5173
|
|
echo Run stop.bat to stop them.
|