ImTranslator: Language Detection
Next, choose the translation direction. You can set the language direction manually, or mark the language "auto detect" checkbox to let ImTranslator identify the language of the original text.
The automatic language detection tool will analyze the source text, identify the language and set the correct language from the list.
You can always change the default language settings in ImTranslator Options.