YOU SAID:
I hate food with sugar, like cake
INTO JAPANESE
私はケーキのように砂糖を使った食べ物が嫌いです
BACK INTO ENGLISH
I hate sugar-based foods like cakes
INTO JAPANESE
私はケーキのような砂糖ベースの食品が嫌いです
BACK INTO ENGLISH
I hate sugar-based foods like cakes
That didn't even make that much sense in English.