I was building the project using this command:
mvn -Pproduction -Pnative native:compile
Everything works fine, and the app loads instantly when I run it.
The only problem is that I am using NumberFormatter
with locales to format numbers in different languages, but it is not working properly.
I did some research on the web and found out that I have to add the locales manually to the native image build command. I don’t know how to achieve that using the command given in the documentation section of Vaadin native image build. The parameter that I need to add is -H:IncludeLocales=fr,en
.