Skip to content

feat(i18n): add Portuguese (pt-PT) translation - #1146

Open
tutods wants to merge 4 commits into
ArtalkJS:masterfrom
tutods:feat/i18n-pt-PT
Open

feat(i18n): add Portuguese (pt-PT) translation#1146
tutods wants to merge 4 commits into
ArtalkJS:masterfrom
tutods:feat/i18n-pt-PT

Conversation

@tutods

@tutods tutods commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Add European Portuguese (pt-PT) translation across all i18n surfaces.

Files added

File Purpose
ui/artalk/src/i18n/pt.ts Frontend comment widget (91 strings)
ui/artalk-sidebar/src/i18n/pt.ts Sidebar / dashboard UI (88 strings)
i18n/pt.yml Backend program strings (76 entries)
conf/artalk.example.pt-PT.yml Localized config template

Files updated

  • docs/docs/en/guide/frontend/i18n.md — add pt to supported languages
  • docs/docs/zh/guide/frontend/i18n.md — add pt to supported languages
  • docs/docs/en/guide/env.md — add pt to ATK_LOCALE options

Notes

  • Aliases registered: pt, pt-PT, pt-BR
  • Frontend pt.ts follows the defineLocaleExternal pattern used by fr.ts, ja.ts, etc.
  • Backend pt.yml is auto-embedded via //go:embed i18n/* in main.go
  • Sidebar pt.ts is auto-loaded via dynamic import in i18n.ts
  • Translation uses informal tu form (European Portuguese convention)

qwqcode and others added 3 commits July 25, 2026 03:07
Avoid assigning temporary platform tags to digest-only outputs so Buildx can push canonical per-platform digests before the manifest merge.
Replace the long-lived npm token with GitHub OIDC credentials, verify the release version, and retain pnpm packaging so the published tarball still includes the repository license.
Add European Portuguese catalogs for the backend, comment UI, dashboard, and configuration template. Register the canonical pt-PT locale across generated options and documentation, and add coverage that prevents locale catalogs or localized config templates from missing keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants