mrgnw / ananas-api

Translate to multiple languages at once using m2m100

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev

wrangler dev

curl local dev

curl  http://localhost:8787
curl -X POST http://localhost:8787 \
-H "Content-Type: application/json" \
-d '{"text": "How do you do, fellow kids?", "src_lang": "en", "to_languages": ["es", "fr", "de"]}'

Use the example pre-push hook

mkdir -p .git/hooks && \
	cp git-pre-push-hook .git/hooks/pre-push && \
	chmod +x .git/hooks/pre-commit
#!/bin/zsh
wrangler deploy

About

Translate to multiple languages at once using m2m100


Languages

Language:JavaScript 77.8%Language:Shell 22.2%