use of org.springframework.web.servlet.view.mustache.jmustache.LocalizationMessageInterceptor in project alf.io by alfio-event.
the class MvcConfiguration method getTemplateMessagesInterceptor.
@Bean
public LocalizationMessageInterceptor getTemplateMessagesInterceptor() {
LocalizationMessageInterceptor interceptor = new LocalizationMessageInterceptor();
interceptor.setLocaleResolver(getLocaleResolver());
interceptor.setMessageSource(messageSource);
return interceptor;
}
Aggregations