use prepend_before_filter instead of append_before_filter so other filters have access to the locale set