Skip to content

Commit

Permalink
fixed a bug in the detect language api
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannis committed Feb 19, 2015
1 parent 3029f20 commit 8f42ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function detect($text)
'text' => $text
));

return $data['en'];
return $data['lang'];
}

/**
Expand Down

0 comments on commit 8f42ce0

Please sign in to comment.