pysepal.solara.locale.resolve_locale_state#
- pysepal.solara.locale.resolve_locale_state(locale_state=None)[source]#
Return a usable LocaleState.
Precedence: an explicit
locale_state, else the current scope’s, whichget_current_locale_state()creates on demand for every runtime including scripts and pytest.- Parameters:
locale_state (LocaleState | None) – An explicit state to use instead of the scope’s.
- Returns:
The locale state to render with.
- Return type: