franciscop / translate

:sa: Translate text on node.js and the browser with promises
MIT License
288 stars 44 forks source link

[Feature Request] - There should be a method to detect a language of a given string. #55

Closed Noushad-web closed 1 year ago

Noushad-web commented 1 year ago

I encountered a situation in which I have a string that may contain different languages. Therefore, before converting it to a specific language, I need to detect its language. Instead of relying on another package or translation API for detection, this package should include a function to detect the language of a given string.

we can use google translation api or something else.

franciscop commented 1 year ago

https://github.com/franciscop/translate/issues/53