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

[google translate]Implementing Language Selection Memory and Non-translation of Code Blocks #3111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

melodysdreamj
Copy link

  1. Language Selection Memory: With this feature, the system will remember the last chosen language by the user across sessions. This ensures a seamless user experience by eliminating the need for users to repeatedly select their preferred language in every session.

  2. Non-translation of Code Blocks: In recognition of the fact that code blocks typically need to remain in their original form for proper functioning, this feature prevents the translation of such blocks. This way, we preserve the integrity of code and facilitate better understanding and utilization.

Please review these changes and provide any feedback.

…ocks

1. Language Selection Memory: With this feature, the system will remember the last chosen language by the user across sessions. This ensures a seamless user experience by eliminating the need for users to repeatedly select their preferred language in every session.

2. Non-translation of Code Blocks: In recognition of the fact that code blocks typically need to remain in their original form for proper functioning, this feature prevents the translation of such blocks. This way, we preserve the integrity of code and facilitate better understanding and utilization.
@Touch-Night
Copy link
Contributor

I think this extension is more like an example for extension developers, so improvement to this is not necessary, there are many good translation extensions already.


params = {
"activate": True,
"language string": "ja",
"language string": "ko",
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is not necessary.

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