from googletrans import Translator
txt=‘Hola! Mi nombre es Chris Mattmann’
translator = Translator()
I can’t understand why the output is lang=en. My text is polish. Required output is lang=‘pl’
Are you sure the required language is Polish? It looks like Spanish to
“Hola! Mi nombre es Chris Mattmann” is Spanish for "Hello! My name is
Google translate detects it as Spanish.
So does Cambridge dictionary (powered by Microsoft):
PROMPT-Online also detects it as Spanish:
DeepL wrongly detects it as German (perhaps fooled by the “mann”
suffix?) and then fails to translate it.
if it is Spanish why the output is en
are you sure, it was not “es” for espanol?