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

Auto Lookup/Translate #11

Open
Stolka opened this issue Mar 1, 2023 · 1 comment
Open

Auto Lookup/Translate #11

Stolka opened this issue Mar 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Stolka
Copy link

Stolka commented Mar 1, 2023

Can we get an auto translate/lookup feature?
I've been using Game2Text up until now, but I really miss that feature.
I'm not sure whether this app already has that feature or not, I looked through the documentation, but I couldn't find it. Great documentation btw, it's very detailed.
Basically send the text to a currently active lookup target as soon as it gets extracted.
As of right now, I need to click the DeepL/jpdb tab to get a translation, it would be very helpful if you could implement it.

Thanks!

@fauu
Copy link
Owner

fauu commented Mar 2, 2023

This should actually already be possible for a pre-defined lookup target. It's just completely undocumented, because it depends on a feature I haven't finalized yet. But with the following added to the config, it should already auto lookup in DeepL on new text:

events: {
  handlers: [
    { on: chunk-add, command: { kind: misc_lookup, params: """{ "targetSymbol": "DEP" }""" }}
  ]
}

Picking the target depending on which one is selected in the client sounds like a good idea, so I'll probably add that to the lookup command.

Let's leave this issue open until this is officially released.

@fauu fauu added the enhancement New feature or request label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants