I would like to imitate the Grails paths for resolving i18n messages.
In WEB-INF / i18n / I have the following directories:
admin /messages_EN.properties
admin /messages_FR.properties
website /messages_EN.properties
website /messages_FR.properties
please ignore the end of the language (EN and FR) in this example
in my xml configuration that I currently have:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="defaultEncoding" value="utf-8" />
<property name="basename" value="/WEB-INF/i18n/" />
</bean>
What I'm looking for here is a way to tell Spring to look for .properties files under i18n, but without explicitly telling it what each subdirectory is. This is without a list of basenames that points to / WEB -INF / i18n / admin / and / WEB-INF / i18n / website /
, WEB-INF/i18n/ , () xml.
admin website
?
!