Added active_locale code