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

i18n support #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

i18n support #214

wants to merge 1 commit into from

Conversation

Masaki-U
Copy link

Description

Testing

Additional context

Modified to allow receiving response messages in the specified language by setting the RESPONSE_LANG environment variable.
(ex.Japanese, French, Chinese...)

@Masaki-U
Copy link
Author

@microsoft-github-policy-service agree

@@ -103,6 +104,10 @@ def _ask(

prompt = "".join(question)

response_lang = os.getenv("RESPONSE_LANG")
if response_lang:
prompt = "Please reply in " + response_lang + prompt
Copy link

@amul047 amul047 Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
prompt = "Please reply in " + response_lang + prompt
prompt = "Please reply in " + response_lang + ": " + prompt

@@ -37,3 +37,5 @@
BUG_PROMPT_YAML = "prompt_bug.yaml"
COVERAGE_PROMPT_YAML = "prompt_coverage.yaml"
SUMMARY_PROMPT_YAML = "prompt_summary.yaml"

RESPONSE_LANG = None
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably default to an actual language?

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

Successfully merging this pull request may close these issues.

2 participants