Hi, how can i show some notification based on actual languaje selected in application?
showNotification(“Se debe de seleccionar empresa / cliente antes de añadir productos”, NotificationType.HUMANIZED);
Hi, how can i show some notification based on actual languaje selected in application?
showNotification(“Se debe de seleccionar empresa / cliente antes de añadir productos”, NotificationType.HUMANIZED);
Use Messages interface:
@Inject
protected Messages messages;
...
showNotification(messages.getMessage(getClass(), "someMessage"), NotificationType.HUMANIZED);