This PR addresses the reported issue regarding the missing export of newLanguageDetector. The issue was identified in theexamples/detect.ts file, where users were instructed to import newLanguageDetector. However, it was found that the export was missing in the src/index.ts file.
Changes:
Added the missing export for newLanguageDetector in src/index.ts.
Included a new test in src/index.test.ts to validate the usage of newLanguageDetector().
Additional Changes:
Removed an unused import (afterEach) in src/index.test.ts.
This PR addresses the reported issue regarding the missing export of
newLanguageDetector
. The issue was identified in theexamples/detect.ts
file, where users were instructed to import newLanguageDetector. However, it was found that the export was missing in thesrc/index.ts
file.Changes:
newLanguageDetector
insrc/index.ts
.src/index.test.ts
to validate the usage ofnewLanguageDetector()
.Additional Changes:
afterEach
) insrc/index.test.ts
.