nidhaloff / dolmetscher Goto Github PK
View Code? Open in Web Editor NEWa simple package to translate between languages using multiple integrated translators
License: MIT License
a simple package to translate between languages using multiple integrated translators
License: MIT License
Thanks for making this library available! I'm currently writing a Discord bot to perform OCR on text-containing images which also provides the functionality of translating transcribed texts to English.
It appears that if the translated result contains any special characters such as '
, it will get escaped. For example:
mymemory.translateText("我不知喜歡")
.then(res => console.log("mymemory result: ", res));
outputs:
mymemory result: i don't like
Is this intended or is that a bug? Thanks!
I'm using mocha and chai to write tests for the package. This issue is great for new comers who want to join the project. You can write more tests to test the functionality. Feel free to work on this or discuss it with me
When I print the supported languages for both google translate and mymemory, there are no supported languages for both.
I'm opening this issue for new comers who want to contribute to the project.
The goal is to integrate more translators in this tool. For example linguee, pons or deepl.
If anyone is interested, feel free to write me or leave a comment
For now translateBatch works well if all elements of array works for translateText(). For instance, the next one:
const texts = ["bonsoir le monde", "Hallo Welt", "guten morgen"];
google
.translateBatch(texts)
.then(res => console.log("batch translation: ", res));
But fails if some element doesn't work properly, For instance this:
const texts = ["", "Hallo Welt", "guten morgen"];
google
.translateBatch(texts)
.then(res => console.log("batch translation: ", res));
It could be interesting if the translation continues if some translation fails for some elements and function return an array with errors messages also.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.