in case Locale class is not present, use the $locale as is.