kiwibrowser / src.next

Source-code for Kiwi Next, a Kiwi Browser auto-rebased with latest Chromium
BSD 3-Clause "New" or "Revised" License
2.31k stars 295 forks source link

Add an integrated translator #1187

Open XM-8JD2 opened 1 month ago

XM-8JD2 commented 1 month ago

Is your feature request related to a problem? Please describe.

Because the translator I'm using linguist is not working.

Describe the solution you'd like

I hope to integrate linguist into KIWI because this translation method is far superior to KIWI's built-in translation experience.

It provides a native translation experience consistent with Chrome, without the need to switch pages. It is fully open-source, allows configuration for tag settings that replace page content, and can be configured to use different translation backends. In principle, it could even use ChatGPT for translation, which makes it perfect for this project.

Describe alternatives you've considered

I tried using linguist, but it doesn't work.

Additional context

Running linguist shows the following:

If I click on "Settings," it shows the following(Rotate, and infinite loop):

I have already submitted an issue on their project: https://github.com/translate-tools/linguist/issues/513

tathastu871 commented 2 weeks ago

KIWI HAS LIMITED SUPPORTED FOR OFFSCREEN API

THE ISSUE WITH THIS EXTENSION ARISES FROM

Uncaught (in promise) TypeError: Error in invocation of offscreen.createDocument(offscreen.CreateParameters parameters, function callback): Error at parameter 'parameters': Error at property 'reasons': Error at index 2: Value must be one of AUDIO_PLAYBACK, BLOBS, CLIPBOARD, DISPLAY_MEDIA, DOM_PARSER, DOM_SCRAPING, GEOLOCATION, IFRAME_SCRIPTING, LOCAL_STORAGE, TESTING, USER_MEDIA, WEB_RTC, WORKERS.

EXTENSION HAS DECLARED MATCH_MEDIA --> REASON BUT SEEMS LIKE KIWI DONT SUPPORT IT