fi.evolver.ai.vaadin.component.i18n.MessageInputI18nFactory Maven / Gradle / Ivy
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;
}
}