YOU SAID:
yesterday i was talking to an onion
INTO JAPANESE
昨日、私はタマネギと話していました
BACK INTO ENGLISH
Yesterday I was talking to an onion
INTO JAPANESE
昨日タマネギと話していた
BACK INTO ENGLISH
I was talking to an onion yesterday
INTO JAPANESE
昨日タマネギと話していた
BACK INTO ENGLISH
I was talking to an onion yesterday
That didn't even make that much sense in English.