Symfony\Component\Translation\MessageCatalogueInterface::defines
Checks if a message has a translation (it does not take into account the fallback mechanism).
Signature
public function defines(string
$id,
[string
$domain = 'messages'] )
Parameters
$id
— string- The message id
$domain
— string- The domain name
Returns
- Boolean
- true if the message has a translation, false otherwise