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

Feature Request: Translate only changed text #10

Open
fell-lucas opened this issue Nov 26, 2024 · 0 comments
Open

Feature Request: Translate only changed text #10

fell-lucas opened this issue Nov 26, 2024 · 0 comments

Comments

@fell-lucas
Copy link

Hey! I've recently integrated this in one of my projects, the work you've done here is amazing!

I have an idea that might improve the results and consume less tokens from DeepL: Is it possible to check for changed/added translations and send only those texts to DeepL? I imagine the implementation would be something like: (considering a flat .json scenario)

  • Compare the changed lines in the source file with the same file in the main/master branch.
    • If there is no file to compare it to, consider all lines as new
    • If there is, save the new and changed lines in a temporary json
  • Submit the temporary file to DeepL for translations
  • Merge the new modified translations from DeepL into the respective flat .json outputs

What do you think?

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

1 participant