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.ts currently contains only a comment and export default {} (68 bytes) — no actual translation exists.
  • The base en.ts is ~142 KB with roughly 800+ user-facing keys (commands, settings, prompts, notices).
  • The runtime fallback in src/lang/helpers.ts is per-key: locale[str] || en[str] — a partial translation degrades gracefully string-by-string, never breaking the UI.
  • However, the shipped main.js only embeds PLUGIN_LANGUAGES for ru, es, zh-cn, zh-tw, matching the "actively maintained translations" list in CONTRIBUTING.md.

Request

  1. Would you accept a new pt-br.ts locale (Brazilian Portuguese)?
  2. If yes, would you add pt-br to the build's PLUGIN_LANGUAGES so it actually ships in dist/main.js? (Without build inclusion, the file has no effect for regular users.)
  3. 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.ts regarding placeholders (${...}, [[...]]) which I understand must remain untouched.

Source: zsviczian/obsidian-excalidraw-plugin