Allow to define Qute i18n default values as properties
Description
Following on https://github.com/quarkusio/quarkus/pull/46280, it would be nice to allow defining default values as properties. This is meant for libraries which could define multiple languages messages that can be overridden in the user app.
Implementation ideas
We could probably put them in another directory? messages/defaults/...
/cc @mkouba (qute)
we could also have the same system you added on templates with priorities
we could also have the same system you added on templates with priorities
Yes, we could apply the same defaults, i.e. root archive message files take precedence. The logic for duplicit message files can be found in the MessageBundleProcessor#findMessageFiles() method.
So one of the solutions would be to:
- support duplicit message files with different priorities
- application root will be the highest priority, e.g.
10 - other application archives have lower priority, e.g.
0 - we will read both message files and merge them (higher priority wins)
- then the merged message file will be merged with message bundle interface (if needed)