attributes->get('locale', 'fr'); $key = $this->{$keyField}; if (!$key) { return null; } return Translation::getTranslation($key, $lang); } }