Skip to content

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Jun 25, 2025

@nosan nosan changed the base branch from main to 3.4.x June 25, 2025 20:44
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 25, 2025

private ConditionEvaluationResult evaluate(EnabledOnLocale annotation) {
Locale locale = Locale.getDefault();
String language = locale.getLanguage();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As an alternative, System.getProperty("user.language") can be used, but as far as I remember, Locale.getDefault() returns the same value.

Introduce @EnabledOnLocale annotation to enable or disable tests
based on the system's default locale.

Signed-off-by: Dmytro Nosan <[email protected]>
@snicoll snicoll self-assigned this Jun 27, 2025
@snicoll snicoll added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 27, 2025
@snicoll snicoll added this to the 3.4.8 milestone Jun 27, 2025
snicoll pushed a commit that referenced this pull request Jun 27, 2025
Introduce @EnabledOnLocale annotation to enable or disable tests
based on the system's default locale.

See gh-46211

Signed-off-by: Dmytro Nosan <[email protected]>
@snicoll snicoll closed this in c0d66d1 Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants