Skip to content

fix(web): translate the pooled limit refill line as one sentence - #42502

Merged
juliusmarminge merged 1 commit into
mainfrom
t3/i18n-pooled-refill-line
Nov 25, 2026
Merged

juliusmarminge merged 1 commit into
mainfrom
t3/i18n-pooled-refill-line

Conversation

@juliusmarminge

Copy link
Copy Markdown
Member

#42499 brought back the time on the pooled Limits refill line (↻ +27% in 5h 0m). The ↻ +{percent}% part was still an untranslated literal, and in {duration} was translated as a separate fragment, so languages that put the time first (Japanese 5時間後, Korean 5시간 후) could not get the word order right.

The line is now one <T context="usage limit refill"> sentence. The percent and duration are passed as <Var>s, and the styled percent span stays inside the sentence. Every web locale has a translation that follows the same locale's existing in {duration} string (de/es/fr/ja/ko/pt-BR/ru/sv/zh). I added only the new key by hand, because i18n:generate also re-sorted about 1,000 unrelated lines in each catalog. vp run i18n:check passes. English output is unchanged, and the existing browser test still asserts ↻ +30% in 30m.

Mobile already uses a single ↻ +{percent}% in {duration} message, so it needs no change.

Done with Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit 617d6ab into main Nov 25, 2026
37 of 38 checks passed
@juliusmarminge
juliusmarminge deleted the t3/i18n-pooled-refill-line branch November 25, 2026 00:04
jason5545 added a commit to jason5545/t3code that referenced this pull request Nov 25, 2026
Upstream pingdotgg#42502 made '↻ +{percent}% in {duration}' one sentence; zh-TW reads it as 「↻ +5%,3 小時後」.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant