use $locale.locale instead of session variable