1
0
Fork 0

Fix: The language detection only searched for farsi

This commit is contained in:
Michael 2022-04-19 06:16:44 +00:00
parent 60afca1fea
commit 0380a3e216

View file

@ -1751,7 +1751,7 @@ class Item
// which point it will be automatically available through `getAvailableLanguages()` and this should be removed.
$availableLanguages['fa'] = 'fa';
$ld = new Language($availableLanguages);
$ld = new Language(array_keys($availableLanguages));
$languages = $ld->detect($naked_body)->limit(0, 3)->close();
if (is_array($languages)) {
return json_encode($languages);