pysepal.solara.locale.get_current_locale_state#
- pysepal.solara.locale.get_current_locale_state()[source]#
Return the locale state for the current runtime scope.
Locale is UI state, not session state: it is keyed by the runtime scope and created on first access, so a Solara connection, a Voila page, plain Jupyter, a script and pytest all get a real
LocaleState. There is no session lookup and no credential in this path, and this function never raises.A fresh state starts at
"en"and is never seeded from~/.sepal-ui-config, which is process-global and therefore made one machine’s language decide what every connection rendered in (issue #977). The real preference is resolved in the browser byLocaleSelect.vueand pushed in from there.- Return type: