Skip to content
Discussion options

You must be logged in to vote

For a lot of static text, this isn't quite convenient.

I agree that message bundles are not a good match for this use case.

1. Different template for languages. E.g. `template.de-AT.html`. For Austrian German, automatically this template is selected

This is not supported yet.

2. Different languages do number formatting differently. Is it possible to retrieve the Locale object inside a qute template which is actually used by Qute when rendering the document to be able to use `{str:fmt(locale,'%tA',now)} or decide on time and date formatting?

Not out of the box but you can use an extension method like this:

@TemplateExtension(namespace = "attr")
static String locale(@TemplateAttribu…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cdhermann
Comment options

Answer selected by cdhermann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/qute The template engine
2 participants