Qute: How to dynamically resolve message keys? #34236
-
I'm looking for a solution to dynamically resolve message keys from a resource bundle. What I found so far is issue #11567 pointing to the solution at https://github.com/quarkusio/quarkus/pull/11613/files#diff-c2466ea58430f533cbe0c33ca9ade344beaef598a94cb34b9dd69d7757205469 So the reference states that it should be possible to resolve runtime keys via So my setup now is:
@MessageBundle
interface AppMessages {
}
header_loggedInAs=You are logged in as: {name}
{msg:message('header_loggedInAs', 'brutus5000') But when starting the app I get an ugly stacktrace:
What am I doing wrong? (I'm on the latest quarkus version 3.1.2.Final) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
/cc @evanchooly (kotlin), @geoand (kotlin), @mkouba (qute) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. |
Beta Was this translation helpful? Give feedback.
Yep, qute type-safe message bundles are not designed to handle external sources of messages, i.e. messages that cannot be validated at build time.