YOU SAID:
when i was young i had a lot of cake
INTO JAPANESE
若い頃はたくさんのケーキを食べました
BACK INTO ENGLISH
I ate a lot of cakes when I was young
INTO JAPANESE
若い頃にたくさんのケーキを食べました
BACK INTO ENGLISH
I ate a lot of cakes when I was young
That didn't even make that much sense in English.