[Translation] added method to expose collected message

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#9859)
| Applies to    | all (or 2.4+)
| Fixed tickets |