Qute mail and locale

43 views
Skip to first unread message

Pascal Paradis-Théberge

unread,
May 12, 2021, 10:49:57 AM5/12/21
to Quarkus Development mailing list
Greetings,

I'm trying to set the locale on a Qute template used to generate emails.

In the Type-Safe Message Bundles documentation, it's suggested to do this for locale resolution

instance.setAttribute("locale", Locale.forLanguageTag("cs")

But there is no setAttribute method in the MailTemplateInstance.

How should one go about setting the locale for mail template resolution ?

Best Regards,

Pascal

Martin Kouba

unread,
May 12, 2021, 11:44:25 AM5/12/21
to ppthe...@gmail.com, Quarkus Development mailing list
Hi, that's a good point. We should enhance the MailTemplateInstance.
Would you care to create a new issue? Of course, pull request are
welcome as well :-).
> --
> You received this message because you are subscribed to the Google
> Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to quarkus-dev...@googlegroups.com
> <mailto:quarkus-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/quarkus-dev/6ad4c265-8953-4cba-982f-03e73a83bb4dn%40googlegroups.com
> <https://groups.google.com/d/msgid/quarkus-dev/6ad4c265-8953-4cba-982f-03e73a83bb4dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Martin Kouba
Software Engineer
Red Hat, Czech Republic

Pascal Paradis-Théberge

unread,
May 12, 2021, 1:44:33 PM5/12/21
to Martin Kouba, Quarkus Development mailing list
Thank you for your reply, Issue #17185 added.


Regards,

Pascal
Reply all
Reply to author
Forward
0 new messages