Skip to main content

no_translations

Decorator that forces a command to run with translations deactivated.

def no_translations(
handle_func: callable
) - > function

Decorator that forces a command to run with translations deactivated.

Parameters

NameTypeDescription
handle_funccallableThe function or command handler to be executed with translations disabled.

Returns

TypeDescription
functionA wrapped version of the original function that manages the global translation state during execution.