Skip to content

Multi-canvas dashboard has hardcoded Chinese strings (no i18n) — unreadable for non-Chinese users #20

Description

@dimafa

First, thanks for excalidraw-full — the multi-canvas server-side dashboard is exactly the missing piece over vanilla Excalidraw. 🙏

Problem: The custom dashboard UI renders several hardcoded Chinese strings with no i18n or locale detection, so non-Chinese users see untranslatable text regardless of browser language. The Excalidraw editor itself is localized, but these custom components are not.

Where (in the excalidraw submodule, multi-canvas branch):

  • excalidraw-app/utils/time.ts — relative timestamps: 刚刚, ${n} 秒前, ${n} 分钟前, ${n} 小时前, ${n} 天前
  • excalidraw-app/components/MyCreationsTab.tsx (~L85) — empty state 空空如也
  • excalidraw-app/hooks/useCanvasManagement.ts (L101 / L140 / L165 / L203) — 4 toasts 您需要登录才能…
  • excalidraw-app/components/AI.tsx — the text-to-diagram system prompt is Chinese-only (lower priority)

Impact: A self-hosted instance used by English (or any non-Chinese) speakers shows Chinese relative dates on every saved canvas, a Chinese empty-state, and Chinese error toasts. There's no setting or browser-locale path to change it since the strings are baked into the compiled frontend.

Suggested fix: Route these through the existing Excalidraw i18n (t() / language files) with English fallbacks, or — as a minimal first step — default the hardcoded literals to English. Happy to open a PR if you'd accept one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions