set localization in a before filter