/** * Search for a specific translation. * * @param string|Translation $context The context of the translation or a translation instance * @param string $original The original string * * @return Translation|false */ public function find($context, $original = '') { if ($context instanceof Translation) { $id = $context->getId(); } else { $id = Translation::generateId($context, $original); } return $this->offsetExists($id) ? $this[$id] : false; }