Search in sources :

Example 1 with LocalizationMessageInterceptor

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;
}
Also used : LocalizationMessageInterceptor(org.springframework.web.servlet.view.mustache.jmustache.LocalizationMessageInterceptor) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 LocalizationMessageInterceptor (org.springframework.web.servlet.view.mustache.jmustache.LocalizationMessageInterceptor)1