'Detect the blob\'s language using the Google Translate API.
Requires an internet connection.
Usage:
>>> b = TextBlob("bonjour")
>>> b.detect_language()
u\'fr\'
Language code reference:
https://developers.google.com/translate/v2/using_rest#language-params
.. versionadded:: 0.5.0
:rtype: str'

def detect_language(self):

    return self.translator.detect(self.raw)
