Notifications Reference Backend developer Localization and translation Notification Edit Language code observe_language/2 Notify that the session’s language has been changed Type: notify Return: #language{} properties: language: atom Edit on GitHub
Notifications observe_set_user_language/2 Set the language of the context to a user’s prefered language
Notifications observe_language_detect/2 Try to detect the language of a translation. Set is_editable_only to false to detect any language, even if the language is not enabled for…
Controllers controller_language_set Controller which sets the language as given in the code argument, and redirects the user back to the page given in the p argument.
Models m_translate_argos Translate plain text and HTML with Argos Translate and manage its language packages through a shared local Python worker.
Models m_translate_deepl Translates lists of texts using the DeepL API and exposes whether an API key has been configured.
Models translation_tree Tree translation API. get/<id> returns language counts, get/status/<id> returns job progress and post/<id> starts a job. Reads require edit…
Notifications observe_development_reload/2 Reloads templates, modules, translations, and other indexed development files after a manual request.
Notifications observe_identity_update_done/2 Notify that a user’s identity has been updated by the identity model.
Notifications observe_translate/2 Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is…