Josh, the FlashTag is not internationalized. However, you can do this using one of two methods.
book_added=A book {0} was added to your library. Author: {1}
Method 1: Use class Messages in controller:
In controller:
flash("saved", Messages.message("book_added", bookName, author ));
In view:
<@flash name="saved" />
This will print:
A book Hunger Games was added to your library. Author: Suzanne Collins
Method 2: Use MessageTag:
In controller:
flash("saved");
In view:
<@flash name="saved">
<@message key="book_added"/>
</@flash>
This will print:
A book {0} was added to your library. Author: {1}
Method 1 should be used when you have parametrized messages. There is no way to pass a parameter to the MessageTag in method 2, because it is running in a different request (after redirect).
Choose a method that most appropriate for your app
tx