I can accomplish it when I have confidence that this is what I want to do.
I know this is what I want to do. I will do it all out.
I have confidence that this is what I want to do.
「やりたい!と思えること」を「これが自分がやりたいことだという確信がある」と言い換えてみました。I have confidence (自分は確信している)と this is what I want to do(これが自分のやりたいことだ) をthatで繋いでいます。
I can accomplish it は、成し遂げることが出来る です。accomplish は完成させると言う意味なので、「やりきる」を「完成までやる」ことだと解釈して使いました。
ただ、これだと説明っぽくなってしまうので、I know this is what I want to do. I will do it all out.と言うのも考えて見ました。これが自分のやりたいことだとわかっている。全力でやるぞ。
willを使った未来形は「日常的にはこれからこれをやると約束する、宣言する、決意を言う」時に使います。all out は総力、全力 と言う意味です。
When something really matters to me, I put my whole heart into it.
こんにちは!
ご質問について、いくつか言い方が考えられますが、例えば、
When something really matters to me, I put my whole heart into it.
とすると、「自分が本当に[やりたい](https://eikaiwa.dmm.com/uknow/questions/101484/)と思えることなら、全力で取り組みます。」となります。
役に立ちそうな単語とフレーズ
dedication 本気で取り組む姿勢、専念
determination 強い決意、やり抜く力
passion 情熱
follow through 最後までやり遂げる
参考になれば幸いです。