A simple yet very useful S.O.L.I.D. principles-based web scraper API using DeepL Translate and extending its capacities.
๐ Supported Languages
- ๐ง๐ฌ Bulgarian
- ๐จ๐ณ Chinese
- ๐จ๐ฟ Czech
- ๐ฉ๐ฐ Danish
- ๐ณ๐ฑ Dutch
- ๐บ๐ธ English
- ๐ช๐ช Estonian
- ๐ซ๐ฎ Finnish
- ๐ซ๐ท French
- ๐ฉ๐ช German
- ๐ฌ๐ท Greek
- ๐ญ๐บ Hungarian
- ๐ฎ๐น Italian
- ๐ฏ๐ต Japanese
- ๐ฑ๐ป Latvian
- ๐ฑ๐น Lithuanian
- ๐ต๐ฑ Polish
- ๐ต๐น Portuguese
- ๐ท๐ด Romanian
- ๐ท๐บ Russian
- ๐ธ๐ฎ Slovenian
- ๐ธ๐ฐ Slovak
- ๐ช๐ธ Spanish
- ๐ธ๐ช Swedish
๐ Check languages.ts for the ISO 639-1 standard language codes.
curl -X POST http://translate.api.jpfb.me
-H 'Content-Type: application/json'
-d '{ "language": { "source": "pt", "target": "en" }, "texts": { "phrase": "Olรก mundo!" } }'
const axios = require("axios");
axios
.post("http://translate.api.jpfb.me", {
language: {
source: "pt",
target: "en",
},
texts: {
phrase: "Olรก mundo!",
},
})
.then((response) => {
console.log(response.data);
})
.catch((err) => {
console.log(err);
});
{
"translation": {
"language": "en",
"texts": {
"phrase": "Hello world!"
}
}
}
A project made by Joรฃo Pedro Ferreira Barbosa.
This project in under MIT license. Check LICENSE for more information.