From 8f42ce0ec3a9931a29218d96d7560cccf3acb32e Mon Sep 17 00:00:00 2001 From: Ivannis Suarez Jerez Date: Thu, 19 Feb 2015 10:04:58 +0000 Subject: [PATCH] fixed a bug in the detect language api --- src/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translator.php b/src/Translator.php index 1e73587..5d8a329 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -61,7 +61,7 @@ public function detect($text) 'text' => $text )); - return $data['en']; + return $data['lang']; } /**