Skip to content

feat: translate variables and function names to target language#16

Merged
SaadBazaz merged 2 commits into
mainfrom
add-more-advanced-translations
Jul 19, 2025
Merged

feat: translate variables and function names to target language#16
SaadBazaz merged 2 commits into
mainfrom
add-more-advanced-translations

Conversation

@SaadBazaz

@SaadBazaz SaadBazaz commented Jul 19, 2025

Copy link
Copy Markdown
Collaborator

from EuroPython 2025

Using the offline translator, argos-translate (based off of OpenNMT), this PR allows users to translate variable names and keywrods. It's offline (i.e. no network calls, yay!), pretty accurate for our use case, but a bit slow.

@SaadBazaz
SaadBazaz merged commit a87d7cc into main Jul 19, 2025
@SaadBazaz

SaadBazaz commented Jul 20, 2025

Copy link
Copy Markdown
Collaborator Author

TODO:

  • Make this lazy load/install, only when the argostranslate is actually called. Currently installs 30MB+ of dependencies
  • Add more translation engines
  • Add on website

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.

1 participant