Open
Description
Description
I've been having this issue where I got constraint validators that just do one very specific thing so it doesn't make sense for them to have a variable message attribute.
Sadly that means the translation extract will not pick up on things that need to be translated in those validators.
It would be great if the translation extract could also look at all validators by default and extract hard coded stings out of those.
Example
For example I got this violation:
$this->context
->buildViolation('Currencies do not match. User currency is {userCurrency}, target currency is {valueCurrency}', ['{userCurrency}' => $userMoney->getCurrency(), '{valueCurrency}' => $valueMoney->getCurrency()])
->setTranslationDomain('app_validators');
but the extractor isn't picking up on it requiring me to go through all of them and extract them by hand.