Repository navigation
Conversation
public/_locales/en/messages.json holds every user-visible string, each with a description for translators (where it shows, length limits, what to keep in English). The manifest declares en as default_locale and reads its name, description and toolbar title from the catalogue, with the same English text.
t(key, substitutions?) reads a message through the browser's i18n; MessageKey comes from the English catalogue, so an unknown key does not compile. tPlural(key, count) picks the _one or _other message with Intl.PluralRules for the browser's UI language, which uiLocale() exposes. WXT's fake browser throws on every i18n call, so a shared test setup answers getMessage from the English catalogue with the browsers' placeholder rules and reports an en-US UI language.
Loops over public/_locales/*/messages.json: each locale must have exactly the English message names, the same placeholders per message, every used placeholder defined, literal dollar signs written as $$, extName within 45 characters (addons.mozilla.org) and extDescription within 132 (Chrome Web Store). The English catalogue must also use Chrome-valid names, no two names that differ only in case, and a description on every message. With English only, the cross-locale checks pass trivially.
Every popup label, heading, button, tooltip, info tip, aria-label, alt text, card text and footer link now goes through t(), with the same English text. - Sentences that embed a value keep it inside one message as a named placeholder: the suggested gap, the run count, the extension's name in the review card, and the Get rewards label quoted in the Daily searches tip. - The sponsor card's bold run count and the progress bar's screen-reader label use tPlural, so translations can vary the noun with the number. - Brand names stay out of translation: the cross-promo label passes "Free Game Claimer" in as a placeholder, and the GitHub footer link stays literal. - The popup's document title is set from extName, since index.html can't read the catalogue.
The "New" badge set on update comes from updateBadge, whose description caps translations at 4 characters (the badge cuts off the rest).
Each catalogue names its own language in localeTag (en here), and the popup sets <html lang> from it, so screen readers, hyphenation and font choice follow the language actually shown, including the English fallback. The parity test checks that localeTag is the BCP 47 form of the catalogue's folder (pt_BR -> pt-BR).
Checked in Chromium with the es, fr, pt_BR, vi, zh_CN and zh_TW catalogues. English renders exactly as before, except one info tip that master already pushed 14px off the popup. - Header title, promo tile text: wrap instead of nowrap. - Prompt-card actions and footer: flex-wrap, so a long button, link or footer label moves to a second line rather than out of the card. - Account level list: at least 88px, wider when a level name needs it. - Info tips: positioned against the row label so they stay centred on the "i" but never start left of the card's edge; short labels (Daily set in English, most rows in Chinese) used to push them off the popup.
Languages picked from the Chrome dashboard's users-by-language export (15 Oct - 12 Nov 2026): together about 36% of weekly users. Draft translations; a native-speaker check is still due for zh_CN, pt_BR, es.
tPlural chose _one/_other with the browser's UI language, but the text comes from whichever catalogue the browser served. A UI language without a catalogue (Russian, Ukrainian, Croatian...) gets English text, and Russian rules call 31 "one", so the sponsor card read "31 search run done for you". The rules now come from the served catalogue's localeTag.
Microsoft Rewards' own terms per language (准备领取, 準備領取, Prêt à réclamer, English terms for vi where Rewards has no Vietnamese); the daily set is clicked, not completed; shorter tooltips for pt_BR and es.
The old summary promised the maximum amount of points; the extension runs the daily Bing searches. The translations already say this.
The Chrome Web Store shows a listing only for the visitor's exact store locale: Latin American visitors (es-419) get English unless es_419 exists. The popup already fell back es_419 -> es; this is for the store listing.
1 of 3 tasks
spin311
added a commit
that referenced
this pull request
Nov 14, 2026
Adds store-assets/ with capture and render tools for the Chrome Web Store screenshots (1-main, 2-progress, 3-settings) in en, zh_CN, zh_TW, pt_BR, es, es_419, fr and vi. Guards stop rendering on Microsoft or Bing marks in captions or the browser frame, and capture on unexpected images in the popup. Commits the 24 images uploaded to the dashboard. Localized captures need the i18n build (#51).
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.
Summary
public/_locales/en/messages.jsonthrough a typedt()overbrowser.i18n. The manifest name, description and popup title use__MSG_(default_locale: en).69021e6) from "Script that gives you maximum amount of microsoft rewards points…" to "Runs your daily Bing searches for Microsoft Rewards automatically or with one click." It describes what the extension does, and every translation says the same.<html lang>follow the catalogue actually served.master).Which language users get
es_419: a copy ofes, so Latin American visitors get a Spanish Chrome Web Store listing (the store has no es-419 → es fallback).Test plan
npm test: 238 tests pass in 19 files;npm run compileclean;npm run buildandbuild:firefoxpassmasterin 11 popup states, apart from the "Daily set" tip fix$$renders as$Size
_locales.Notes
search.test.ts"keeps the configured timeout as the average" fails about 1 run in 8. It does onmastertoo, so it isn't caused by this branch.