pysepal.i18n.locale_store#

The locale as a Solara reactive, isolated by Solara’s kernel context.

Outside a Solara context, reads and writes use the process default. Workers should return results or message keys to the UI context for translation. Keeping the value here avoids importing pysepal session management.

Functions

current_locale

Return the current kernel's locale, subscribing during a render.

set_locale

Set the locale for the current Solara kernel, or the process default.