-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations are not refreshed without full server restart #2554
Comments
I debugged the application using Spring Dev Tools and I see that in DefaultI18NProvider::getBundle the class loader is |
For Spring applications, the default |
ResourceBundle caches resources internally, this affects translation resources for the I18n feature. However, after a hot reload of a SpringBoot application in dev mode, up-to-date translations are expected in the output. With this change, a RestartClassLoader is used in SpringBoot applications for loading translation ResourceBundle, so that the translation bundles are reloaded on hot reload. Fixes vaadin/hilla#2554
ResourceBundle caches resources internally, this affects translation resources for the I18n feature. However, after a hot reload of a SpringBoot application in dev mode, up-to-date translations are expected in the output. With this change, a RestartClassLoader is used in SpringBoot applications for loading translation ResourceBundle, so that the translation bundles are reloaded on hot reload. Fixes vaadin/hilla#2554
…19791) ResourceBundle caches resources internally, this affects translation resources for the I18n feature. However, after a hot reload of a SpringBoot application in dev mode, up-to-date translations are expected in the output. With this change, a RestartClassLoader is used in SpringBoot applications for loading translation ResourceBundle, so that the translation bundles are reloaded on hot reload. Fixes vaadin/hilla#2554
…19791) (#19821) ResourceBundle caches resources internally, this affects translation resources for the I18n feature. However, after a hot reload of a SpringBoot application in dev mode, up-to-date translations are expected in the output. With this change, a RestartClassLoader is used in SpringBoot applications for loading translation ResourceBundle, so that the translation bundles are reloaded on hot reload. Fixes vaadin/hilla#2554 Co-authored-by: Anton Platonov <[email protected]>
This ticket/PR has been released with Vaadin 24.4.11. |
Describe the bug
Changes to translation files are not picked up by a regular redeploy but only after the server is restarted.
Expected-behavior
Expected that I can update translations while developing without having to constantly restart the server.
Reproduction
vaadin-i18n/translations_en.properties
containing a single line:greeting = Hello in English
.await i18n.configure({language: "en"});
to@layout.tsx
@index.tsx
to{translate("greeting")}
greeting = Hello in English2
System Info
Vaadin 24.4.3
The text was updated successfully, but these errors were encountered: