diff --git a/conversejs/build-conversejs-patch-i18n.js b/conversejs/build-conversejs-patch-i18n.js index ec2325d5..eca841ac 100644 --- a/conversejs/build-conversejs-patch-i18n.js +++ b/conversejs/build-conversejs-patch-i18n.js @@ -54,6 +54,10 @@ function patch (lang) { const label = labels[key] patchLabel(destContent, label, yaml[key] ?? '') } + + // We add an extra _livechat_language, so we can compute url to documentation + // (same thing as _language in build-languages.js) + patchLabel(destContent, '_livechat_language', lang) fs.writeFileSync(destFile, destContent.join('\n')) } diff --git a/conversejs/custom/plugins/tasks/templates/muc-task-app.js b/conversejs/custom/plugins/tasks/templates/muc-task-app.js index 5545810e..ef82e064 100644 --- a/conversejs/custom/plugins/tasks/templates/muc-task-app.js +++ b/conversejs/custom/plugins/tasks/templates/muc-task-app.js @@ -1,3 +1,4 @@ +import { converseLocalizedHelpUrl } from '../../../shared/lib/help' import { html } from 'lit' import { __ } from 'i18n' @@ -23,15 +24,19 @@ export function tplMUCTaskApp (el, mucModel) { // eslint-disable-next-line no-undef const i18nTasks = __(LOC_tasks) // eslint-disable-next-line no-undef - const i18nHint = __(LOC_task_app_info) + const i18nHelp = __(LOC_online_help) + const helpUrl = converseLocalizedHelpUrl({ + page: 'documentation/user/streamers/tasks' + }) + return html`