From d94caf2783acffe34b6775c33f398865a6011f78 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 24 Jul 2023 23:41:34 -0400 Subject: [PATCH] fix: Missing translation for Slack hook --- plugins/slack/server/api/hooks.ts | 5 ++++- shared/i18n/locales/en_US/translation.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index 671b702d7..cef40782a 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -217,7 +217,10 @@ router.post("hooks.slack", async (ctx: APIContext) => { if (text.trim() === "help" || !text.trim()) { ctx.body = { response_type: "ephemeral", - text: "How to use /outline", + text: t("How to use {{ command }}", { + command: "/outline", + ...opts(user), + }), attachments: [ { text: t( diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index e203233ed..fe91d8980 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -875,6 +875,7 @@ "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.": "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.", "Connect": "Connect", "The Slack integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "The Slack integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.", + "How to use {{ command }}": "How to use {{ command }}", "To search your knowledgebase use {{ command }}. \nYou’ve already learned how to get help with {{ command2 }}.": "To search your knowledgebase use {{ command }}. \nYou’ve already learned how to get help with {{ command2 }}.", "Sorry, we couldn’t find an integration for your team. Head to your {{ appName }} settings to set one up.": "Sorry, we couldn’t find an integration for your team. Head to your {{ appName }} settings to set one up.", "It looks like you haven’t signed in to {{ appName }} yet, so results may be limited": "It looks like you haven’t signed in to {{ appName }} yet, so results may be limited",