Official pt-BR support for the plugin UI — pt-br.ts is an empty stub; would you accept a community translation?
Author: henrickguCreated Sep 27, 2026Updated Sep 27, 2026
Context
src/lang/locale/pt-br.tscurrently contains only a comment andexport default {}(68 bytes) — no actual translation exists.- The base
en.tsis ~142 KB with roughly 800+ user-facing keys (commands, settings, prompts, notices). - The runtime fallback in
src/lang/helpers.tsis per-key:locale[str] || en[str]— a partial translation degrades gracefully string-by-string, never breaking the UI. - However, the shipped
main.jsonly embedsPLUGIN_LANGUAGESforru,es,zh-cn,zh-tw, matching the "actively maintained translations" list in CONTRIBUTING.md.
Request
- Would you accept a new
pt-br.tslocale (Brazilian Portuguese)? - If yes, would you add
pt-brto the build'sPLUGIN_LANGUAGESso it actually ships indist/main.js? (Without build inclusion, the file has no effect for regular users.) - Do you prefer one complete PR, or incremental PRs by section (e.g. commands first, then settings, then prompts)? Per-key fallback means even a partial first stage delivers immediate value.
Offer
I'm a native pt-BR user and willing to translate and maintain the file — including keeping it in sync with new en.ts keys over time. Following the "Discuss First" guideline in CONTRIBUTING.md, I'd like to align on the accepted approach before starting the translation.
Notes
- The canvas-side UI will already render in pt-BR once the locale-mapping bug is fixed (separate issue), so this request is strictly about the plugin's own strings: command palette entries, Settings pages, notices and dialogs.
- Happy to follow any style conventions from
es.ts/ru.tsregarding placeholders (${...},[[...]]) which I understand must remain untouched.
Source: zsviczian/obsidian-excalidraw-plugin