<dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-spring-boot-starter</artifactId> </dependency> @Route("") public class MainView extends VerticalLayout { public MainView() { TextField textField = new TextField("Name"); add(textField); } } <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-i18n</artifactId> </dependency> Name=Name vaadin.i18n.provider=org.vaadin.example.MyTranslationProvider vaadin.i18n.locales=en, zh public class MyTranslationProvider extends ResourceBundleTranslationProvider { public MyTranslationProvider() { super("messages"); } }


上一篇:
下一篇:
切换中文