feat(dev_tools): add translation editor for browsing and editing UI translations
Some checks failed
CI / ruff (push) Successful in 9s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has been cancelled

New admin page to browse, search, compare, and inline-edit translation
keys across all modules and languages from the browser.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 22:44:41 +01:00
parent 319900623a
commit aefca3115e
10 changed files with 867 additions and 4 deletions

View File

@@ -149,6 +149,21 @@ async def admin_platform_debug_page(
)
@router.get("/translation-editor", response_class=HTMLResponse, include_in_schema=False)
async def admin_translation_editor_page(
request: Request,
current_user: User = Depends(
require_menu_access("translation-editor", FrontendType.ADMIN)
),
db: Session = Depends(get_db),
):
"""Render translation editor page."""
return templates.TemplateResponse(
"dev_tools/admin/translation-editor.html",
get_admin_context(request, db, current_user),
)
@router.get("/sql-query", response_class=HTMLResponse, include_in_schema=False)
async def admin_sql_query_page(
request: Request,