Skip to content

feat: Added sponsor page translations - #2854

Open
claycuy wants to merge 2 commits into
Acode-Foundation:mainfrom
claycuy:feat/strings
Open

feat: Added sponsor page translations#2854
claycuy wants to merge 2 commits into
Acode-Foundation:mainfrom
claycuy:feat/strings

Conversation

@claycuy

@claycuy claycuy commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added enhancement New feature or request translations Anything related to Translations Whether a Issue or PR labels Sep 4, 2026
@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR localizes the sponsor directory and sponsor purchase surfaces, including page titles, calls to action, purchase-result messages, tier empty states, and monthly pricing labels.

  • Adds ten sponsor-related keys consistently across all locale catalogs.
  • Adds the corresponding keys to the generated language type contract.
  • Replaces hardcoded sponsor UI text with values from the active language catalog.
  • Fixes the previously reported untranslated sponsor-directory page shell.

Confidence Score: 5/5

The PR appears safe to merge; no actionable correctness, security, or repository-rule violations remain.

The locale catalogs and generated type contract are aligned, all changed sponsor-page lookups resolve, and the previously reported hardcoded page-shell title has been fully localized. The HTML-rendered thank-you value is supplied only by trusted bundled catalogs, so the examined injection path is not reachable.

Important Files Changed

Filename Overview
src/pages/sponsors/sponsors.js Replaces directory text and the page-shell title with catalog values while preserving tier grouping and sponsor loading behavior.
src/pages/sponsor/sponsor.js Localizes purchase-page headings, pricing units, and completion or error messages without changing the purchase flow.
src/lang/index.d.ts Extends the localized-string type contract with all newly consumed sponsor keys.
src/lang/en-us.json Defines the English source values for the complete set of sponsor localization keys.
src/lang/id-id.json Supplies Indonesian translations for all sponsor-page strings.
src/lang/ar-ye.json Retains permitted English fallback values while keeping its key set aligned with the source catalog; the same pattern applies to the other untranslated catalogs.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    Catalogs[Locale catalogs] --> Language[Active language service]
    Types[LangStrings contract] --> Pages
    Language --> Pages[Sponsor pages]
    Pages --> Directory[Sponsor directory UI]
    Pages --> Purchase[Sponsor purchase UI and dialogs]
Loading

Reviews (2): Last reviewed commit: "feat: Added new key" | Re-trigger Greptile

Comment thread src/pages/sponsors/sponsors.js
@claycuy

claycuy commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request translations Anything related to Translations Whether a Issue or PR

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant