Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I am not exactly sure how to do that. I triggered error everytime i couldnt find a translation for a message and found the bug when i couldnt get a translation for already translated message. It happened to me with backend form checking using (probably) anonymous function.
I can try to find exactly the point, where it gets translated for the first time.
I thought about it a little bit.
The only reason for the translation being in the
$message = $translator->translate($message, is_int($rule->arg) ? $rule->arg : null);
But this seems to me to be wrong. Assume that you would like to validate whether a number is smaller than 5. Then the
@dg what do you think?