简体   繁体   中英

How can I translate English text to Japanese text programmatically?

I have a edit text that can input English words/sentence and I want it to convert to Japanese text. Is there any API I can use to achieve this?

For Example:

I type: Hello

The expected output in my Textview should be: こんにちは

尝试将其转换为Android: py-googletrans

如果要使其在本地运行,则可以有一个文件(带有单词的csv txt)并读取它们,或者连接到带有单词数据库的服务器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM