Added default_locale utility function