Closed albertmir closed 1 day ago
Hi! Right now some charsets seem not to be supported when subsets are limitted. For example:
const langSubset = ['en', 'es']; console.log(eld.detect('Cześć! Jak się masz?').language); console.log(eld.detect('नमस्कार! अहांक कोना छी?').language);
Throws an error:
file:///Users/myusername/app/node_modules/eld/src/languageDetector.js:62 language = languageData.langCodes[results[0][0]] ^ TypeError: Cannot read properties of undefined (reading '0') at Object.detect (file:///Users/myusername/app/node_modules/eld/src/languageDetector.js:62:49)
Thanks!
Fixed. I did NOT rebuild the minified files.
Hi! Right now some charsets seem not to be supported when subsets are limitted. For example:
Throws an error:
Thanks!