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

deepl #5

Open
bllfoad opened this issue Apr 23, 2024 · 3 comments
Open

deepl #5

bllfoad opened this issue Apr 23, 2024 · 3 comments

Comments

@bllfoad
Copy link

bllfoad commented Apr 23, 2024

hey can you give me full example how to use deepl , big thanks to you

@r1tsuu
Copy link
Owner

r1tsuu commented Apr 29, 2024

Hi, i've just released this plugin for 3.0 and here are details on how to write your own resolver https://github.com/r1tsuu/payload-enchants/tree/master/packages/translator#writing-your-own
example with Google https://github.com/r1tsuu/payload-enchants/blob/master/packages/translator/src/resolvers/google.ts should be something like that but different apiUrl.

@genox
Copy link
Contributor

genox commented May 4, 2024

DeepL would be nice. :) I was preparing to make a PR when I get around to it.

@r1tsuu
Copy link
Owner

r1tsuu commented May 4, 2024

DeepL would be nice. :) I was preparing to make a PR when I get around to it.

I restructured this repo a bit, a PR with resolver for DeepL will be accepted, although you can add custom one but it would be nice to have out of the box support.

Basically it would be copy of https://github.com/r1tsuu/payload-enchants/blob/master/packages/translator/src/resolvers/google.ts but with few changes.

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

3 participants