Repository navigation
Spanish says it is machine-translated, and asks for help improving it - #130
Open
david-firia wants to merge 3 commits into
Open
david-firia wants to merge 3 commits into
david-firia wants to merge 3 commits into
Conversation
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>
|
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
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.
Spanish ships on December 1 labelled as machine-translated, with a request for help improving it.
machineinOFFERED(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.OFFEREDinsrc/i18n/index.js, so the menu can offer it without loading it. The first visit is now 566 KB.main.jsstarts 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.mjschecks the note under Español, the improve link and the About paragraph in Spanish, and that English carries no note.🤖 Generated with Claude Code