Repository navigation
Add a JSON endpoint to get localization messages for a locale #15841
Replies: 2 comments 2 replies
|
@jonkoops I went ahead and started a discussion. |
Since this is retrieving a JSON file I think GET would be most appropriate here.
Good question, I am not too familiar with how this is done currently in other parts of the API.
I'd argue this could be a public API that requires no authentication, but opinions might differ.
Yes, we are however in the process of migrating the UIs to the main project. Although it will take a while before we are there. |
Uh oh!
There was an error while loading. Please reload this page.
Currently, localized messages are added to the FreeMarker template so that the front end can have access to them.
If we are implementing React-based front-ends, it would be nice to access an endpoint to request a particular locale's messages. Something like:
/localizations/
I have a preliminary implementation that I've done (https://github.com/stelewis-redhat/keycloak/blob/accountformservice-localizations/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java#L341), but I have questions I'd like to raise:
All reactions