Answer the question
In order to leave comments, you need to log in
Service for determining the text input language. Which one exists?
I don't know how best to proceed. I want to fix what language the user uses. I see two ways
* Look at the user's locale
* Try to determine by text input
What is the best way to proceed? I know Google Translate seems to be able to determine the input language. For money. I don't know what to choose and how to proceed. Help me please.
Answer the question
In order to leave comments, you need to log in
I know Google Translate seems to be able to determine the input language. For money. I don't know what to choose and how to proceed. Help me please.
curl -s "https://translate.googleapis.com/translate_a/single" --data "client=gtx&dt=t&sl=auto&tl=ru" --data-urlencode "q=你好" | jq -r '.[2]'
Locale is the simplest, this is the language + region.
There are libraries and API services to determine by text.
Search:Language Detection (library OR API)
I don't know what to choose and how to proceed.We don't know either. Try and choose for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question