Skip to content

Commit

Permalink
fix: Fix the issue of incorrectly identifying the language of the sel…
Browse files Browse the repository at this point in the history
…ected text when changing the text tone. (#685)
  • Loading branch information
Emt-lin authored Sep 29, 2024
1 parent 2a6e833 commit 4c54ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export function createTranslateSelectionPrompt(language?: string) {
export function createChangeToneSelectionPrompt(tone?: string) {
return (selectedText: string): string => {
return (
`Please change the tone of the following text to ${tone}. Output in the same language as the source, do not output English if it is not English:\n\n` +
`Please change the tone of the following text to ${tone}. Identify the language first, then Output in the same language as the source, do not output English if it is not English:\n\n` +
`${selectedText}`
);
};
Expand Down

0 comments on commit 4c54ab6

Please sign in to comment.