Admin panel has no language switcher for its own chrome #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Admin chrome text (
ADMIN_STRINGS/t()instatic/js/admin/admin.js) is English-only today:ADMIN_LANGis hardcoded toSITE_LANGUAGES[0](hugo.toml'sdefaultContentLanguage, currentlyen) — an admin user can't pick their own display language. The two strings that do have French translations (newPost/postTitlePrompt) only work because they're called with an explicit content-language argument tied to a specific post's language tab; that mechanism doesn't help chrome that isn't per-language (Site Settings, save/validation messages, etc).Fix: a real language-picker control for the admin's own display language, decoupled from
SITE_LANGUAGES[0], feeding a persisted (localStorage)ADMIN_LANGinstead of the current hardcoded constant. TheADMIN_STRINGS/t()table is already structured to support this (seefr:'s fallback-to-en:behavior) — it just has nothing driving it today.See
docs/future_additions.md("Admin Panel Language Switcher").