Skip to content

Commit cda5ce2

Browse files
Update src/content-script/selection-tools/index.mjs
1 parent f198be7 commit cda5ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const createGenPrompt =
3030
? `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 the text is already in ${preferredLanguage}, translate it into English instead following the same requirements.`
33+
fullMessage += ` If the text is already in ${preferredLanguage}, translate it into English instead following the same requirements. Only provide the translated result.`
3434
}
3535
const prefix = includeLanguagePrefix ? `Reply in ${preferredLanguage}.` : ''
3636
return `${prefix}${fullMessage}:\n'''\n${selection}\n'''`

0 commit comments

Comments
 (0)