Skip to content

feat(i18n): Bahasa for shared UI components (finishes full coverage) - #132

Merged
slaveofcode merged 1 commit into
developfrom
feat/i18n-shared-components
Aug 2, 2026
Merged

feat(i18n): Bahasa for shared UI components (finishes full coverage)#132
slaveofcode merged 1 commit into
developfrom
feat/i18n-shared-components

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Localizes the generic shared components that every tool uses, via a small useLang() hook (reads the URL, updates on astro:page-load) + useUi() strings. Covers Dropzone ('Drop files here'), CopyButton/CopyImageButton ('Copy'/'Copied'), ResultActions ('Download …'), ImageResult ('Result' + size delta), EditInAnnotatorButton, and the Load/Download default labels — so those render Bahasa on /id/ across all 73 tools at once. Explicit label props still override.

Verify

  • lint 0 errors · build 184 pages · Bahasa shared strings confirmed in built chunks.

This completes full Bahasa coverage of the tool UIs. (Privacy page is the last English public page — separate small follow-up.)

Adds src/i18n/shared.ts (useLang() reads the URL + re-checks on astro:page-load;
useUi() returns the current-locale strings). Wires the common components that carry
their own text — Dropzone, CopyButton, CopyImageButton, ResultActions, ImageResult,
EditInAnnotatorButton, Load/DownloadText buttons — so 'Copy'/'Download'/'Drop files
here'/'Result' etc. render Bahasa on /id/ across every tool at once. Explicit label
props still override. Completes full Bahasa coverage of the tool UIs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ubfx4XocHcECaL8twp9zsr
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
goodwebtools 82c90a9 Aug 02 2026, 09:06 AM

@slaveofcode
slaveofcode merged commit 2d32676 into develop Aug 2, 2026
1 of 2 checks passed
@slaveofcode
slaveofcode deleted the feat/i18n-shared-components branch August 2, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant