public function getTranslationByLocale($locale = null)
{
if (null === $locale) {
throw new \RuntimeException('please support an locale');
}
foreach ($this->translations as $translation) {
$translations[$translation->getLocale()] = $translation;
}
return $translations[$locale];
}