public function getTranslatedLocales() { $locales = array(); if ($this->getAllTranslations()->count()) { foreach ($this->getAllTranslations() as $translation) { $locales[] = $translation->getLocale(); } } return $locales; }