Created
June 13, 2012 15:14
-
-
Save oehme/2924684 to your computer and use it in GitHub Desktop.
Freemarker i18n the easy way - Java side
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Map<String, Object> getDataModel() { | |
HashMap<String, Object> datamodel = new HashMap<>(); | |
datamodel.put("date", new LocalDate()); | |
datamodel.put("time", new LocalTime()); | |
datamodel.put("month", new YearMonth()); | |
datamodel.put("boolean", true); | |
datamodel.put("greeting", new MessageParameterObj(Messages.HELLO, "Freemarker")); | |
return datamodel; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment