zyddnys / manga-image-translator

Translate manga/image 一键翻译各类图片内文字 https://cotrans.touhou.ai/
https://cotrans.touhou.ai/
GNU General Public License v3.0
5.38k stars 555 forks source link

[HELP REQUEST] Translator lib(more languages, more translators, more options, faster) #327

Open JustFrederik opened 1 year ago

JustFrederik commented 1 year ago

I have build a translator library that can be used for that project. Its partially reused code from another project and its not complete yet. I will add offline translators and offline chatbots in the future, when i find the time for it, but for now i want to add apis to this project.

Its a big pain to get the api tokens. It was pretty easy for deepl, but google gave an "unexpected error" and i gave up after a while of triying. Could anyone who has a token help me test the apis. When anyone wants to help could you please say which token you have so i can implement the api.

Translators

The beneit of this translator is that its defenetly faster since its in rust, every language is supported and it has multiple input options like iso639-1, iso639-3, language name and every mapping of the translators(which is mostly iso639-1 and iso639-3). This is the table with supported langauges

@thatDudo coud you move this issue to disscussions

1439707509 commented 1 year ago

所以说,你这是一个新的离线翻译器?

JustFrederik commented 1 year ago

No it’s a library that manages translators. It is basically chaining translations together and choosing translators based on detected languages. I added all the translators used right now into this project. It has a bigger language map and it is slightly faster. Right now you can only translate to a handful of languages. This library supports every language. When offline translators are added it will be more performant because the memory is managed better, but this is a future goal.

I’m looking right now for someone who has access to one of the APIs so it can be tested.

不,它是一个管理翻译人员的库。它基本上是将翻译链接在一起,并根据检测到的语言选择翻译器。我将现在使用的所有翻译器添加到这个项目中。它有一个更大的语言地图,它稍微快一点。现在你只能翻译成少数几种语言。该库支持每种语言。添加离线转换器时,由于内存管理得更好,因此性能会更高,但这是未来的目标。 我现在正在寻找可以访问其中一个 API 以便对其进行测试的人。

thatDudo commented 1 year ago

@thatDudo coud you move this issue to disscussions

I think that feature can only be enabled by the repository owner, if he wishes to

JustFrederik commented 1 year ago

@thatDudo my bad. i thought anyone with moderation options could. I thought it should be moved, because it isnt really an issue, but a question or a help request ;D

1439707509 commented 1 year ago

听不懂你说什么,我主要用来日转中,还有使用web服务

JustFrederik commented 1 year ago

@1439707509 它替代了这个项目中的 python 代码。 它更快并且支持更多语言。

its a replacement for the python code in this project. Its faster and supports more languages