[#67] fixed the locale setting by passing it by parameters instead of passing it by controller actions