Internationalizing Vaadin applications with Spring
We will take a look at a simple example where we demonstrate how to perform internationalization (or also called localization) in the Vaadin application using Spring.
The application will be localized in two languages, English and Finnish. We will display Name in two languages. The second one is going to be the Finnish language, where the name can be translated as Nimi.
A user (developer or tester) has to change the language setting in the browser in order to see the localization properly.
In the following screenshot, we have changed the browser language to English in the browser setup window. When we refresh the page, the localized name appears on the screen.
Then we have changed the language to Finnish and the appropriate localized string appears on the screen.
Getting ready
Create a new Maven project from the Vaadin archetype.
mvn archetype:generate \ -DarchetypeGroupId=com.vaadin \ -DarchetypeArtifactId=vaadin-archetype-application \ ...