Skip to content

Commit 1bc643b

Browse files
Apply suggestions from code review
1 parent 6e0e6d5 commit 1bc643b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content-script/selection-tools/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const createGenPrompt =
2727
}
2828

2929
let fullMessage = isTranslation
30-
? `You are a professional translator. Translate the following text into ${preferredLanguage}, preserving meaning, tone, and formatting. Only provide the translated result`
30+
? `You are a professional translator. Translate the following text into ${preferredLanguage}, preserving meaning, tone, and formatting. Only provide the translated result.`
3131
: message
3232
if (enableBidirectional) {
33-
fullMessage += `. If it is already in ${preferredLanguage}, translate it into English and only show me the translated content.`
33+
fullMessage += ` If it is already in ${preferredLanguage}, translate it into English and only show me the translated content.`
3434
}
3535
const prefix = includeLanguagePrefix ? `Reply in ${preferredLanguage}.` : ''
3636
return `${prefix}${fullMessage}:\n'''\n${selection}\n'''`

0 commit comments

Comments
 (0)