Welcome to libretranslate-java Discussions! #1
Replies: 9 comments 8 replies
-
Hello! Will be auto-detection of the text? |
Beta Was this translation helpful? Give feedback.
-
yes, it will be soon |
Beta Was this translation helpful? Give feedback.
-
Done! If you don't know which language to translate from, use: Translator.translate("to", "text"); Usage example: System.out.println(Translator.translate("en", "Для примера, переведем текст с русского на английский и выведем в консоль:")); |
Beta Was this translation helpful? Give feedback.
-
Excellent! How can I get a list of all supported languages? |
Beta Was this translation helpful? Give feedback.
-
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, "Для примера, переведем текст с русского на английский и выведем в консоль:"); |
Beta Was this translation helpful? Give feedback.
-
Can you also add a translate method with a String parameter? |
Beta Was this translation helpful? Give feedback.
-
I would like to parse ENUM + add my values |
Beta Was this translation helpful? Give feedback.
-
return "Falled translate!"; I think it should be "Failed translate!" |
Beta Was this translation helpful? Give feedback.
-
👋 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.
Beta Was this translation helpful? Give feedback.
All reactions