Fallback locale other than the system locale in AbstractResourceBasedMessageSource #23977
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
It's already possible to fallback to the System Locale in, for example
ResourceBundleMessageSource
. In my current case, I don't want to fall back to the system locale, but I want to fallback to the same Default Locale that the rest of our system uses.I already attempted this through the
MessageSourceAccessor
Bean above, but that only seems to configure the default locale when invokinggetMessage(...)
without specifying an explicit locale manually.So the behaviour I would expect is, that if I have message files
messages_{en,de}.properties
, and then a call likemessageSourceAccessor.getMessage("message.key", Locale.FRENCH)
would return the german string configured formessage.key
inmessages_de.properties
The text was updated successfully, but these errors were encountered: