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

[Idea] Add automatic translations using an API such as Deepl or Google Translate #53

Open
lukaskurz opened this issue Mar 4, 2022 · 1 comment

Comments

@lukaskurz
Copy link
Contributor

I was thinking, that it would be nice to have a feature, that can automatically translate and insert missing translations into our translation file. I have a similar workflow set up, since I often have to translate into languages I dont speak. Do you think this would be something that fits into the scope of this library ? If so, then I could implement it and send you a PR for it. Otherwise I'm just going to put it into a seperate package.

@defuncart
Copy link
Collaborator

Hi @lukaskurz, thanks for the suggestion! Automatic translation is a little out of scope of this package, however I do think that flappy_translator could optionally make use of such functionality.

Assuming that an automatic_translator (must be dart only) package exists, flappy could depend on this package. A setting translate_empty_values (defaulting to false) could be added. Then CodeGenerator could optionally use some api like AutomaticTranslator.translate(defaultWord) and save this in maps instead of defaultWord when words[wordIndex] is empty.

Some error handling and tests would need to be added, code would be async instead of sync etc. I don't see any breaking changes arising.

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

2 participants