Skip to content

feat!: Make localeSignal() read-only on VaadinSession and UI (#23828) (CP: 25.1)#23837

Open
vaadin-bot wants to merge 1 commit into25.1from
cherry-pick-23828-to-25.1-1773229344211
Open

feat!: Make localeSignal() read-only on VaadinSession and UI (#23828) (CP: 25.1)#23837
vaadin-bot wants to merge 1 commit into25.1from
cherry-pick-23828-to-25.1-1773229344211

Conversation

@vaadin-bot
Copy link
Collaborator

This PR cherry-picks changes from the original PR #23828 to branch 25.1.

Original PR description

Return Signal instead of SharedValueSignal/ValueSignal from localeSignal() so that all locale changes go through setLocale(), which handles UI propagation and LocaleChangeObserver notification. Add javadoc showing two-way binding pattern with bindValue and setLocale.

Add tests for bindValue-based locale switching, UI locale independence from session, and session setLocale with per-UI override.

Return Signal instead of SharedValueSignal/ValueSignal from localeSignal() so that all locale changes go through setLocale(), which handles UI propagation and LocaleChangeObserver notification. Add javadoc showing two-way binding pattern with bindValue and setLocale.

Add tests for bindValue-based locale switching, UI locale independence from session, and session setLocale with per-UI override.
@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

 1 382 files  ±0   1 382 suites  ±0   1h 24m 52s ⏱️ -41s
 9 890 tests  - 3   9 819 ✅  - 3  71 💤 ±0  0 ❌ ±0 
10 363 runs   - 3  10 283 ✅  - 3  80 💤 ±0  0 ❌ ±0 

Results for commit 52ce291. ± Comparison against base commit 05cfb06.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants