Skip to content
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

Switch locale #24736

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Switch locale #24736

merged 3 commits into from
Dec 12, 2023

Conversation

edewit
Copy link
Contributor

@edewit edewit commented Nov 14, 2023

fixes: #24082
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com

@edewit edewit requested a review from a team as a code owner November 14, 2023 09:20
@ghost ghost added the team/ui label Nov 14, 2023
Copy link

cypress bot commented Nov 14, 2023

1 flaky test on run #10211 ↗︎

0 545 54 0 Flakiness 1

Details:

Merge 14c584c into 37a2454...
Project: Keycloak Admin UI Commit: a9b9085426 ℹ️
Status: Passed Duration: 06:57 💡
Started: Dec 12, 2023 10:04 AM Ended: Dec 12, 2023 10:11 AM
Flakiness  cypress/e2e/client_registration_policies.spec.ts • 1 flaky test • chrome

View Output

Test Artifacts
Client registration policies tab > Authenticated client policies subtab > add authenticated client registration policy Test Replay Screenshots

Review all test suite changes for PR #24736 ↗︎

jonkoops

This comment was marked as off-topic.

js/apps/account-ui/src/api.ts Outdated Show resolved Hide resolved
@@ -12,6 +12,14 @@ const DEFAULT_LOCALE = "en";
// that we can have a proper type-safe translation function.
export type TFuncKey = any;

export const keycloakLanguageDetector: LanguageDetectorModule = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh cool, I wasn't aware this is a feature! Perhaps we should implement this the same way in the Admin Console.

jonkoops
jonkoops previously approved these changes Nov 14, 2023
js/apps/account-ui/src/i18n.ts Outdated Show resolved Hide resolved
fixes: keycloak#24082
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

@ghost
Copy link

ghost commented Nov 21, 2023

Unreported flaky test detected

If the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.account.AccountRestServiceTest#updateConsentForClientWithPut

Keycloak CI - Java Distribution IT (windows-latest - temurin - 19)

java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:87)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.junit.Assert.assertTrue(Assert.java:53)
	at org.keycloak.testsuite.account.AccountRestServiceTest.updateConsentForClientWithPut(AccountRestServiceTest.java:1377)
...

Report flaky test

org.keycloak.testsuite.account.AccountRestServiceTest#createConsentForClientWithPut

Keycloak CI - Java Distribution IT (windows-latest - temurin - 19)

java.lang.AssertionError: 
type
Expected: is "GRANT_CONSENT"
     but: was "UPDATE_CONSENT"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
...

Report flaky test

org.keycloak.testsuite.account.AccountRestServiceTest#createConsentForClient

Keycloak CI - Java Distribution IT (windows-latest - temurin - 19)

java.lang.AssertionError: 
type
Expected: is "GRANT_CONSENT"
     but: was "UPDATE_CONSENT"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
...

Report flaky test

jonkoops
jonkoops previously approved these changes Nov 21, 2023
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@edewit edewit merged commit e6095f9 into keycloak:main Dec 12, 2023
73 checks passed
ShefeeqPM pushed a commit to ShefeeqPM/keycloak that referenced this pull request Jan 27, 2024
* Switch locale

fixes: keycloak#24082
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selected locale is not taking into accoun in keycloak.v3 account theme
2 participants