Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-language support #3

Closed
goldengrape opened this issue Dec 6, 2022 · 5 comments
Closed

Add multi-language support #3

goldengrape opened this issue Dec 6, 2022 · 5 comments

Comments

@goldengrape
Copy link

Just translate "Give me the summary of" to the target language

gptQuestion = `Give me the summary of :\n\n${request.content}`

to Chinese:
https://translate.google.com/?sl=auto&text=Give%20me%20the%20summary%20of&op=translate&tl=zh-CN
to Spanish_language
https://translate.google.com/?sl=auto&text=Give%20me%20the%20summary%20of&op=translate&tl=es
....
ISO 639-1 codes list in:
https://en.wikipedia.org/wiki/ISO_639-1

@krlvi
Copy link
Contributor

krlvi commented Dec 6, 2022

here's a PR adding a config for the prompt to use #5
This is a flexible approach but not sure if it's the preferred one by @clmnin

@clmnin
Copy link
Owner

clmnin commented Dec 6, 2022

@goldengrape I've merged PR #5 . Let us know if this works for you.

@wenlzhang
Copy link

wenlzhang commented Dec 7, 2022

The following two configurations work for me:

  • Rewrite this for brevity, translate into Chinese, in outline form:
    • This directly summarizes the article in Chinese, outline form.
  • Rewrite this for brevity, in outline form, Chinese translation:
    • This summarizes the article in outline form in English, and adds a Chinese translation below.

@clmnin
Copy link
Owner

clmnin commented Dec 7, 2022

@wenlzhang I've updated the README (added an FAQ) to reflect your prompt.

@clmnin
Copy link
Owner

clmnin commented Mar 28, 2023

This issue was fixed in 1832926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants