pysepal.solara.locale.LocaleState#

class pysepal.solara.locale.LocaleState(*args, **kwargs)[source]#

Resolved locale code, keyed by runtime scope.

Initialize with an initial resolved locale code.

Attributes

locale

A trait for unicode strings.

Methods

__init__

Initialize with an initial resolved locale code.

set_locale

Update the resolved locale; an empty value coerces to "en".

Parameters:

locale (str)

LocaleState.__init__(locale='en', **kwargs)[source]#

Initialize with an initial resolved locale code.

Parameters:

locale (str)

LocaleState.set_locale(locale)[source]#

Update the resolved locale; an empty value coerces to "en".

Parameters:

locale (str)

Return type:

None