I want to localize a string that contains multiple placeholders.
E.g:
Hello %@1, today is %@2
I'd like to pass an array to the localization helper in my template like so:
But that doesn't work, even though the documentation says it should.
What does work is
But the data I receive to display is an array and I don't want to store each element in a seperate variable.
How can I get the loc helper in the template to work with an array of data? Am I doing something wrong?
Aucun commentaire:
Enregistrer un commentaire