I didn't mean to tell you all that, but I felt like I wanted to.
I wasn't planning to let you know what was really on my heart, but I just had to.
ーI didn't mean to tell you all that, but I felt like I wanted to.
「あなたにそれをいうつもりじゃなかったけど、伝えたくなった。」
I didn't mean to tell you ... で「あなたに…を伝えるつもりはなかった」
I felt like I wanted to で「したくなった」
ーI wasn't planning to let you know what was really on my heart, but I just had to.
「本当の気持ちを伝えるつもりはなかったけど、言わずにはいられなかった。」
what was really on my heart で「本当の気持ち」
I just had to で「〜せずにはいられなかった」
ご参考まで!
I didn't mean to open up to you, but I just felt like sharing.
・I didn't mean to open up to you, but I just felt like sharing.
「あなたに打ち明けるつもりじゃなかったのですが、つい伝えたくなっちゃいました」を表したフレーズです。open up to 〜(〜に心を開く・本音を打ち明ける)という言葉を否定形の I didn't mean to(〜するつもりはなかった)と組み合わせ、but I just felt like sharing(でも伝えたい気分になっちゃった)と続けることで表現できます。
・I wasn't planning on confiding in you, but I suddenly wanted to tell you.
「あなたに打ち明ける(信頼して秘密を話す)つもりはなかったけれど、急に伝えたくなったんだ」という意味の表現です。