で日記を付けてきたの

have been keeping a diary in …

→ で
phrase Rare #44,604
have been keeping a diary in … The missing part before で is the language the diary is written in. てきた indicates that the activity has continued up to the present; の gives the sentence a conversational, explanatory tone.
JA: 私は一年間スペイン語で日記を付けてきたの。
EN: I've been keeping a diary in Spanish for a year.

数年前から日本語で日記を付けてきたの。

I've been keeping a diary in Japanese for the past few years.

去年から日本語で日記を付けてきたの。

I've been keeping a diary in Japanese since last year.

ここ三年間フランス語で日記を付けてきたの。

I've been keeping a journal in French for the past three years.