Remove old way of locale setting.
@@ -36,14 +36,9 @@ public class ThymeleafTemplateEngine implements io.jooby.TemplateEngine {
// Locale:
Locale locale = modelAndView.getLocale();
- if (locale == null) {
- // keep compatibility with previous versions
- locale = (Locale) model.getOrDefault("locale", null);
-
if (locale == null) {
locale = ctx.locale();
}
- }
Context context = new Context(locale, model);
String templateName = modelAndView.getView();
