eZ Publish uses - locale format (mostly, some supported locales being out of this format, e.g. cro-HR).
Symfony uses the standard POSIX locale format (_), which is supported by Intl PHP extension.
Locale converters are meant to convert in those 2 formats back and forth.