All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.evolver.ai.vaadin.component.i18n.MessageInputI18nFactory Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
package fi.evolver.ai.vaadin.component.i18n;

import com.vaadin.flow.component.messages.MessageInputI18n;

public class MessageInputI18nFactory {
	public static MessageInputI18n getI18n(VaadinTranslations t) {
		MessageInputI18n i18n = new MessageInputI18n();
		i18n.setMessage(t.getTranslation("vaadin.messageInput.message"));
		i18n.setSend(t.getTranslation("vaadin.messageInput.send"));
		return i18n;
	}

	public static MessageInputI18n getI18nForImageComponent(VaadinTranslations t) {
		MessageInputI18n i18n = new MessageInputI18n();
		i18n.setMessage(t.getTranslation("component.aiImage.messageInput.message"));
		i18n.setSend(t.getTranslation("component.aiImage.messageInput.send"));
		return i18n;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy