Skip to main content

activate

Fetch the translation object for a given language and install it as the current translation object for the current thread.

def activate(
language: string
) - > null

Fetch the translation object for a given language and install it as the current translation object for the current thread.

Parameters

NameTypeDescription
languagestringThe language code used to fetch and set the active translation object for the current thread.

Returns

TypeDescription
nullNothing is returned; the function modifies the thread-local state.