public function setLocaleProvider(TranslationLocaleProviderInterface $localeProvider) { $this->localeProvider = $localeProvider; return $this; }