-
Notifications
You must be signed in to change notification settings - Fork 167
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
feat: add default I18N provider bean for Spring #17933
Conversation
Test Results1 025 files + 8 1 025 suites +8 1h 2m 6s ⏱️ - 4m 51s Results for commit 8c31155. ± Comparison against base commit 76f5fcd. This pull request removes 1 and adds 3 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Just noticed that Logger instance field is not needed anymore so I'll remove that. |
vaadin-spring/src/main/java/com/vaadin/flow/spring/i18n/DefaultI18NProviderFactory.java
Outdated
Show resolved
Hide resolved
vaadin-spring/src/main/java/com/vaadin/flow/spring/VaadinApplicationConfiguration.java
Outdated
Show resolved
Hide resolved
Added `vaadin.i18n.location-pattern` property. Added Conditional annotation with Condition implemented by DefaultI18NProviderFactory. Also moved location pattern to create(String) method.
vaadin-spring/src/main/java/com/vaadin/flow/spring/VaadinApplicationConfiguration.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
This ticket/PR has been released with Vaadin 24.3.0.alpha4 and is also targeting the upcoming stable 24.3.0 version. |
Extends DefaultI18NProvider (#5917) for Spring.
VaadinApplicationConfiguration
definesDefaultI18NProvider
bean and initializes it with locales based on translation properties files found in the classpath under '/vaadin-i18n' path.Fixes: #17836