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.