Localization Basics

Last updated

Last updated
import static com.vaadin.grails.Grails.i18n
import static java.util.Locale.ENGLISH
String label = i18n("default.home.label")
String homeEng = i18n("default.home.label", ENGLISH)
Object[] newItemArgs = ["Proper label to be shown"]
String newItem = i18n("default.home.label", newItemArgs)
String newItemEng = i18n("default.home.label", newItemArgs, ENGLISH)
String newItemEngDef = i18n("do.not.exist", newItemArgs, "Default label for {0}", ENGLISH)