Welcome to libretranslate-java Discussions! #1
dynomake
announced in
Announcements
Replies: 9 comments 8 replies
|
Hello! Will be auto-detection of the text? |
0 replies
|
yes, it will be soon |
0 replies
|
Done! If you don't know which language to translate from, use: Translator.translate("to", "text");Usage example: System.out.println(Translator.translate("en", "Для примера, переведем текст с русского на английский и выведем в консоль:")); |
0 replies
|
Excellent! How can I get a list of all supported languages? |
0 replies
|
Done! View all available languages: https://github.com/suuft/libretranslate-java/blob/master/src/main/java/net/suuft/libretranslate/Language.java Now you can specify Enum, example: Translator.translate(Language.RUSSIAN, Language.ENGLISH, "Для примера, переведем текст с русского на английский и выведем в консоль:");Also, if you do not know the language from you need to translate: Translator.translate(Language.ENGLISH, "Для примера, переведем текст с русского на английский и выведем в консоль:"); |
0 replies
|
Cool! |
0 replies
|
Can you also add a translate method with a String parameter? |
2 replies
|
I would like to parse ENUM + add my values |
3 replies
|
return "Falled translate!"; I think it should be "Failed translate!" |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
All reactions