Skip to content

Commit

Permalink
fix: add 'translate=no' for code
Browse files Browse the repository at this point in the history
  • Loading branch information
zorox112 authored and v8tenko committed Oct 21, 2024
1 parent b4526d0 commit 4bb3490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/includer/ui/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4bb3490

Please sign in to comment.