Repository navigation
feat: remember the picked language in every example - #1
Merged
Merged
Conversation
Each app saves the language picker's value (a language code, or "system" for System default) under rerune-example-language and starts in it next time: the React app before ReRune.setup, both Angular apps through the engine's start language (a dashboard-only language once ReRuneService.ready() resolves), and the Expo app from AsyncStorage during startup. The SDK still saves no language choice. The Expo app now declares @react-native-async-storage/async-storage 2.2.0, the version SDK 1.8.0 already installs, so it can import it. The Angular pickers mark the current language through each option's selected state, which also fixes System default showing on a fresh start. 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.
Summary
Every example now remembers the language picked in its language picker, System default included, and starts in it next time. The SDK itself saves no language choice.
examples/react-native-expo/package.json + "@react-native-async-storage/async-storage": "2.2.0" # already installed by @rerune/react-native 1.8.0The Angular pickers mark the current language through each option's
selectedstate, which also fixes System default showing on a fresh start.Evidence
After: new specs in
tests/browser/chapter.spec.tsandota.spec.tsfail on the old builds and pass now.pnpm lint,pnpm typecheck,pnpm test(11/11),pnpm check:dependencies,CI=true pnpm build, andCI=true pnpm export:androidpassed.pnpm test:browser32 passed andpnpm test:parity2 passed, run locally on Chromium revision 1234 (this PR's CI runs the pinned revision). With French remembered and its download held, all three web apps keep English, then show French.Merge Danger
Door: two-way
Example code, tests, docs, and one direct dependency that was already in the lockfile. Revert the commit to undo.
Blast Radius: examples
A browser or device that ran the examples keeps the remembered language until the user picks another.
🤖 Generated with Claude Code