YOU SAID:
Yesterday I a chocolate cake
INTO JAPANESE
昨日はチョコレートケーキを食べました
BACK INTO ENGLISH
I ate chocolate cake yesterday
INTO JAPANESE
昨日チョコレートケーキを食べました
BACK INTO ENGLISH
I ate chocolate cake yesterday
That didn't even make that much sense in English.