https://github.com/vaadin/vaadin-localization-example
Example for Vaadin 14 how make a multilingual application
https://github.com/vaadin/vaadin-localization-example
example internationalization localization vaadin
Last synced: 17 days ago
JSON representation
Example for Vaadin 14 how make a multilingual application
- Host: GitHub
- URL: https://github.com/vaadin/vaadin-localization-example
- Owner: vaadin
- License: unlicense
- Created: 2020-05-28T21:07:25.000Z (almost 6 years ago)
- Default Branch: v25
- Last Pushed: 2026-03-18T07:11:40.000Z (about 1 month ago)
- Last Synced: 2026-03-18T22:58:58.064Z (about 1 month ago)
- Topics: example, internationalization, localization, vaadin
- Language: TypeScript
- Homepage: https://vaadin.com/start
- Size: 6.61 MB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Project example for implementing localization in a Vaadin Flow application
This example application demonstrates implementing internationalization and localization in a Vaadin Spring Boot project.
Locales supported are English, Finnish and French.
[](https://github.com/shadikhani/vaadin-localization-example)
Among the classes under the `com.vaadin.example` package
- `Application.java` is responsible for running the application
- `GreetService.java` supplies localized greetings
- `MainView.java` is the main view, and an entry point for the application
- `ServiceInitListener.java` customises start-up process by setting a locale for the application
- `SimpleI18NProvider.java` is a simple implementation of a `I18NProvider`
Resource bundles with the name `labelsbundle`, which contain the actual translations, are located under the `/resources` folder.
## Running the Application
Import the project to the IDE of your choosing as a Maven project.
Run the application using `mvn spring-boot:run` or by running the `Application` class directly from your IDE.
Open http://localhost:8080/ in your browser.
If you want to run the application locally in the production mode, run `mvn spring-boot:run -Pproduction`.
## More information
- A tutorial on I18N localization at official docs [I18N localization](https://vaadin.com/docs/flow/advanced/tutorial-i18n-localization.html)
- A tutorial on internationalization in Vaadin Flow [Internationalization in Vaadin Flow](https://vaadin.com/learn/tutorials/i18n/i18nprovider)