Skip to content

LanguageDetector 1.3.0

Compare
Choose a tag to compare
@landrok landrok released this 26 Sep 13:08
· 13 commits to master since this release

Features

  • Thanks to @crishoj Loaded models can be limited with an array of ISO codes : $detector = new LanguageDetector(null, ['de', 'en', 'es', 'fr']);
  • LanguageDetector::getLanguages() returns an array of ISO codes. It's the list of models that are currently loaded and that will be evaluated.
  • Static method detect() now accepts an array of ISO codes as a second parameter : echo LanguageDetector::detect($text, ['de', 'en', 'es', 'fr']);
  • Now supports PHP 7.4 and 8.0