Repository navigation
fix(web): translate the pooled limit refill line as one sentence - #42502
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 小時後」.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#42499 brought back the time on the pooled Limits refill line (
↻ +27% in 5h 0m). The↻ +{percent}%part was still an untranslated literal, andin {duration}was translated as a separate fragment, so languages that put the time first (Japanese5時間後, Korean5시간 후) 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 existingin {duration}string (de/es/fr/ja/ko/pt-BR/ru/sv/zh). I added only the new key by hand, becausei18n:generatealso re-sorted about 1,000 unrelated lines in each catalog.vp run i18n:checkpasses. 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