Change localization to a directive