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

Custom translator #71

Open
illian64 opened this issue Oct 16, 2023 · 1 comment
Open

Custom translator #71

illian64 opened this issue Oct 16, 2023 · 1 comment

Comments

@illian64
Copy link

illian64 commented Oct 16, 2023

Есть ли возможность добавить полностью ручной сервис переводов? по такому (или похожему) типу https://github.com/bbepis/XUnity.AutoTranslator#translators

CustomTranslate. Alternatively you can also specify any custom HTTP url that can be used as a translation endpoint (GET request). This must use the query parameters "from", "to" and "text" and return only a string with the result (try HTTP without SSL first, as unity-mono often has issues with SSL).

NOTE: This is a developer-centric option. You cannot simply specify "CustomTranslate" and expect it to work with any arbitrary translation service you find online. See FAQ
Example Configuration:
Endpoint=CustomTranslate
[Custom]
Url=http://my-custom-translation-service.net/translate
Example Request: GET http://my-custom-translation-service.net/translate?from=ja&to=en&text=こんにちは
Example Response (only body): Hello

@illian64
Copy link
Author

Было обсуждение про то, что сервисы пытаются блокировать автопереводы и были идеи выгрузки в файл. Предложенный вариант с указанием своего адресаподойдет тем, кто может настроить у себя сервис перевода локально или использовать какой-либо внешний источник.

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