Skip to content

Spanish says it is machine-translated, and asks for help improving it - #130

Open
david-firia wants to merge 3 commits into
mainfrom
spanish-machine-label
Open

david-firia wants to merge 3 commits into
mainfrom
spanish-machine-label

Conversation

@david-firia

@david-firia david-firia commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Spanish ships on December 1 labelled as machine-translated, with a request for help improving it.

  • Language menu: under "Español", a small "traducción automática" (in Spanish, as the language's name is).
  • While Spanish is in use: the menu adds "Ayúdanos a mejorar la traducción ↗", linking to the issue tracker, and About opens with a short paragraph: translated by machine, not yet checked by a person, please help us improve it.
  • For the next language: machine in OFFERED (src/i18n/index.js) holds a few words in that language. A translation a person has reviewed sets it to '', and the labels go. README "Strings and languages" says so.
  • The first visit loads English alone. Every visit downloaded both languages' tables (the app's and Blockly's), and the new labels took the first visit to 601 KB against its 600 KB budget. Each other language now loads only when it is in use. Its name, and whether a machine translated it, moved to OFFERED in src/i18n/index.js, so the menu can offer it without loading it. The first visit is now 566 KB. main.js starts the app whether or not the page finished loading while a language loaded.

The Spanish table already had every key, so nothing else changed in it. Mission and journey content (Learn packs, the demo) is English only, as before.

Tests: tests/pseudo.mjs checks the note under Español, the improve link and the About paragraph in Spanish, and that English carries no note.

🤖 Generated with Claude Code

david-firia and others added 2 commits November 26, 2026 07:45
Under Español in the language menu, "traducción automática". While
Spanish is in use, the menu adds a link to help improve the translation
(the issue tracker), and About opens with a paragraph saying the
language was translated by machine and not yet checked by a person.

A table marks itself with lang.machine; a reviewed translation sets it
to '' and the labels go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first visit carried every language's table, the app's and Blockly's,
and the Spanish labels took it over its 600 KB budget. Each language now
loads when it is the one in use; its name, and whether a machine
translated it, are in OFFERED in i18n/index.js so the menu can offer it
unloaded. The first visit is 566 KB. The app starts whether or not the
page finished loading while a language loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit d0dcf71):

https://firialabs-open-editor--pr130-spanish-machine-labe-0r76zgof.web.app

(expires Thu, 03 Dec 2026 14:48:32 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 81259a1fec315ca1af3747d225d9c7424890be3e

A fixed 400 ms was too short on a slow CI runner; it now waits for the
journey to be back at its first step, and fails as before if it never is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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