raesl.doc.locales
#
Localization module.
Submodules#
Package Contents#
Classes#
Functions#
|
Gettext alike translation function. |
List available locales. |
|
|
Register a locale. Existing locales are re-registered. |
|
Register default locale if no other locale is set. |
Attributes#
- raesl.doc.locales.logger#
- raesl.doc.locales.pm#
- raesl.doc.locales.hookspec#
- raesl.doc.locales.hookimpl#
- raesl.doc.locales._(key: str, hook: pluggy.PluginManager = pm.hook)#
Gettext alike translation function.
- raesl.doc.locales.list_locales()#
List available locales.
- raesl.doc.locales.register_locale(locale: str = 'en')#
Register a locale. Existing locales are re-registered.
- raesl.doc.locales.register_default_locale(locale: str = 'en')#
Register default locale if no other locale is set.