diff --git a/src/includer/ui/common.ts b/src/includer/ui/common.ts index e9776e3..e4820d0 100644 --- a/src/includer/ui/common.ts +++ b/src/includer/ui/common.ts @@ -48,9 +48,9 @@ function bold(text: string) { return `**${text}**`; } -function code(text: string, type = '') { - const appliedType = type && text.length <= 2000 ? type : ''; - return EOL + ['```' + appliedType, text, '```'].join(EOL) + EOL; +function code(text: string, type = 'text', translate = false) { + const appliedType = type && text.length <= 2000 ? type : 'text'; + return EOL + ['```' + appliedType + ` ${translate ? '' : 'translate=no'}`, text, '```'].join(EOL) + EOL; } function method(text: string, path: string, server: V3Server) {