pysepal.solara.locale#

Scope-keyed locale state and Solara hooks.

Functions

describe_offered_locales

Pair each offered locale code with a display name and flag.

get_current_locale_state

Return the locale state for the current runtime scope.

match_offered_locale

Return the code from offered that best matches candidate.

resolve_locale_state

Return a usable LocaleState.

use_locale

Reactively return the resolved locale code for the current scope.

LocaleState(*args, **kwargs)

Resolved locale code, keyed by runtime scope.