implement .locale_attributes_for