-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Is your feature request related to a problem?
When the translation UI is injected, it always defaults to showing the first programming language in the list. If a user's primary goal is to translate everything to Python, they have to manually click the "Python" tab every single time, which is a repetitive and slightly annoying experience.
Describe the solution you'd like
-
When a user clicks on a language tab in the translation UI, save the name of that language (e.g., 'Python') into chrome.storage.session. Session storage is ideal because the preference can be reset when the browser is closed.
-
The next time the injectOrUpdateTranslations function is called, it should first check if a value exists in session storage.
-
If a saved language is found, and that language is one of the available translations, make that tab the active one by default instead of the first tab.
Additional context
This is a small but impactful quality-of-life improvement that makes the extension feel smarter and more responsive to the user's workflow.