translate keys inside templates