public function __construct(TranslationLocaleProviderInterface $localeProvider) { $this->definedLocalesCodes = $localeProvider->getDefinedLocalesCodes(); $this->defaultLocaleCode = $localeProvider->getDefaultLocaleCode(); }