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
| Name | Type | Description |
|---|---|---|
| language | string | The language code used to fetch and set the active translation object for the current thread. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the thread-local state. |