mirror of
https://github.com/RADar-AZDelta/Keun.git
synced 2026-03-23 20:37:05 +00:00
[GH-ISSUE #8] Add Bergamot translation #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
RADar-AZDelta/archived-Keun#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pjlammertyn on GitHub (May 8, 2023).
Original GitHub issue: https://github.com/RADar-AZDelta/Keun/issues/8
Originally assigned to: @BostoenToby on GitHub.
site: https://browser.mt/
github: https://github.com/browsermt/bergamot-translator
latest release: https://github.com/browsermt/bergamot-translator/releases/tag/latest
latest models: https://github.com/mozilla/firefox-translations-models
example implementation: https://github.com/mozilla/translate
de taal kan gedetecteerd worden met i18n.detectLanguage()
code van de Firefox textension kan gebruikt worden om de modellen te downloaden: https://github.com/mozilla/firefox-translations/blob/main/extension/model/modelRegistry.js (**maar dit is blijkbaar een oude versie 0.3.4 terwijl bergamot reeds aan versie 0.4.5 zit! maar deze bevat blijkbaar geen nederlands :( (
github.com/browsermt/bergamot-translator@8d5f877596/wasm/module/translator.js (L75)https://bergamot.s3.amazonaws.com/models/index.json)@pjlammertyn commented on GitHub (May 8, 2023):
the https://addons.mozilla.org/en-US/firefox/addon/translatelocally-for-firefox/ extension points in there source code https://github.com/jelmervdl/translatelocally-web-ext/blob/main/src/background/WASMTranslationHelper.js#L43 towards https://data.statmt.org/bergamot/models/ for their models, but no dutch model is available
@pjlammertyn commented on GitHub (May 8, 2023):
also take a look at the translation test code: https://github.com/RADar-AZDelta/svelte-translation/blob/master/src/lib/MozillaTranslationComponent.svelte
Here the models are in the static folder (so this is problematic but possibly the only workable solution)
perhaps we wil need to add a seperate github repo to host the models
@pjlammertyn commented on GitHub (May 9, 2023):
@BostoenToby you should start with the https://github.com/RADar-AZDelta/svelte-translation POC.
But you need the solve the build issue (probably with the vite-plugin-static-copy plugin)