fix use either the intl locale class or symfony class