ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

Wire the localization component from the application configuration.

The manager reads the app.locale, app.fallback_locale, and app.language_path settings, builds the loader, the repository, and the translator, and caches the resulting translator so a single shared instance serves the whole application.

Method __buildTranslator Build the translator from the application configuration.
Method __init__ Initialize the manager with the application container.
Method translator Return the shared translator instance, building it on demand.
Class Variable __slots__ Undocumented
Instance Variable _app Undocumented
Instance Variable _translator Undocumented
def __buildTranslator(self) -> ITranslator: (source)

Build the translator from the application configuration.

Returns
ITranslatorTranslator bound to a fresh loader and repository.
Raises
InvalidLocaleExceptionIf the configured locale or fallback locale is malformed.
def __init__(self, app: IApplication): (source)

Initialize the manager with the application container.

Parameters
app:IApplicationApplication container providing configuration and paths.
Returns
NoneUndocumented
def translator(self) -> ITranslator: (source)

Return the shared translator instance, building it on demand.

Returns
ITranslatorTranslator configured from the application settings.
Raises
InvalidLocaleExceptionIf the configured locale or fallback locale is malformed.

Undocumented

_translator: ITranslator | None = (source)

Undocumented