Repository navigation
usertest: Dutch (and other languages) in the user-testing app (#198) - #204
Merged
Merged
Conversation
The session page gets a language switch at the top (English, Nederlands; the list lives in page/i18n.js with a flag per language), also reachable as `&lang=nl` in the invite link and remembered per browser. Switching changes the page's texts and tester instructions, including the typed-answer box (label, placeholder, Send, the "your turn" and "the microphone is not working" notices, "You (typed)"), the speech recognizer's language, the interviewer voice (nl-NL, else nl-BE, else the default) and the moderator's language, also mid-session; switching back to English restores all of it from the next line on. The page tells the moderator with POST /sessions/<id>/lang. Every turn carries a `[Language]` line, so the system prompt (script and English session plan) stays the same and cached; script.md now says to speak that language and translate the plan's tasks. meta.json records `lang` and `langChanges`; the transcript records each switch and each tester turn's language; analyze.mjs still writes its findings in English. Not done: the Atomic app's own UI stays English, because the data-browser has no Dutch translation (en, es, fr, de only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #198. Builds on #202 (typed answers).
page/i18n.jsholds the language list, each with a flag (🇬🇧 English, 🇳🇱 Nederlands), and every page text: instructions, consent, the typed-answer box and notices. A language comes from the buttons, from&lang=nlin the link, or from the last choice remembered in the browser.POST /sessions/<id>/lang. Every turn carries a[Language]line, andscript.mdtells it to speak that language and translate the tasks. Findings stay in English.meta.jsonrecordslangandlangChanges, and the transcript notes each switch.Tested locally:
&lang=nland a mid-session switch to English.Not verified: real speech recognition in English or Dutch, a real Chrome screen-share session, and a Dutch-speaking tester. Deployment to the droplet isn't included.
🤖 Generated with Claude Code