Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Localization in a Fusion app

Rasmus Nielsen
11 months ago Mar 10, 2021 5:29pm

Hello all,

We are testing an application in Fusion and I can't seem to find anything about localization in a Fusion app. I do see there is solution for a java Flow application, but would that solution also work in Fusion?


Last updated on Mar, 10th 2021
Jean-Christophe Gueriaud
11 months ago Mar 12, 2021 11:44am


There is nothing specifically included in Vaadin Fusion for the localization. To translate the captions, you can use lit-translate npm package.

Here is an example: https://github.com/jcgueriaud1/fusion-grid-column-configurator-example/blob/main/frontend/views/helloworld/hello-world-view.ts#L14

The documentation of the package is quite good: https://github.com/andreasbm/lit-translate

There is also this solution (I didn't try it and it's still in active development): https://www.npmjs.com/package/@lit/localize

Mark HM
11 months ago Mar 19, 2021 10:11pm
Rasmus Nielsen
11 months ago Mar 24, 2021 8:07am
Jean-Christophe Gueriaud
10 months ago Apr 18, 2021 2:58pm


I've created an example here: https://github.com/jcgueriaud1/vaadin-multilanguage-app 

The validation is not working , there is an open ticket: https://github.com/vaadin/flow/issues/10688

Rasmus Nielsen
10 months ago Apr 19, 2021 2:48pm