Closed ajmas closed 5 years ago
Would it be possible to add an optional third parameter to LanguageDetect.detect() that would allow add a property to return the languages as iso2 or iso3. If it is already possible, could this be added to the docs?
LanguageDetect.detect()
Example:
LanguageDetect.detect(text, 1, { langType: 'iso2' } )
Digging into the code a bit I see that setLanguageType() is available, but not exposed to Typescript. Will add a PR if it is welcome.
setLanguageType()
PR: https://github.com/FGRibreau/node-language-detect/pull/33
Merged :+1: thanks!
Would it be possible to add an optional third parameter to
LanguageDetect.detect()
that would allow add a property to return the languages as iso2 or iso3. If it is already possible, could this be added to the docs?Example: