Runtime locale switching without state loss
The locale, direction and timezone can change while the grid is in use without remounting it. Sort, filter, selection, scroll position, expanded groups and an active edit are all kept. Locale-dependent derived state, such as collation order and day groups, is recomputed in a single pass.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid scrolled to row 400, with a filter, 3 selected rows and one group expanded.
Expected behavior
After switching, the same logical rows stay selected and visible. Re-collated sort order may move rows, and the viewport stays anchored on the focused row. Locale-specific filter text inputs are reinterpreted or kept according to the documented policy.
Planned API surface
setLocale(tag)setDirection(dir)setTimeZone(zone)localeChangedbeforeLocaleChangeAcceptance criteria
- No component remount happens (verified through lifecycle hooks). (pending)
- Selection is keyed by row identity. (pending)
- The focused row stays within the viewport after a re-sort. (pending)
- beforeLocaleChange can cancel the switch. (pending)