Skip to content

Commit

Permalink
Merge pull request #3 from ivannis/detect-api
Browse files Browse the repository at this point in the history
fixed a bug in the detect language api
  • Loading branch information
Nikita Gusakov committed Feb 19, 2015
2 parents 3029f20 + 8f42ce0 commit 980d212
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 980d212

Please sign in to comment.