We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getPreferredLanguage
1 parent 310f362 commit 356926aCopy full SHA for 356926a
src/content-script/selection-tools/index.mjs
@@ -32,6 +32,10 @@ const createGenPrompt =
32
fullMessage += `. If it is already in ${preferredLanguage}, translate it into English and only show me the translated content`
33
}
34
35
+ const prefix = includeLanguagePrefix ? `Reply in ${preferredLanguage}.` : ''
36
+ return `${prefix}${fullMessage}:\n'''\n${selection}\n'''`
37
+ }
38
+
39
export const config = {
40
explain: {
41
icon: <ChatText />,
0 commit comments