Allow $locale to be null.