removed server side translation in favour of client side (#32985)

fixes: #32984

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-09-23 07:42:07 +02:00 committed by GitHub
parent 5e2f09f66d
commit d01f531b82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,6 @@
import {
ContinueCancelModal,
label,
useEnvironment,
} from "@keycloak/keycloak-ui-shared";
import {
@ -142,14 +143,20 @@ export const Applications = () => {
variant="link"
onClick={() => window.open(application.effectiveUrl)}
>
{application.clientName || application.clientId}{" "}
{label(
t,
application.clientName || application.clientId,
)}{" "}
<ExternalLinkAltIcon />
</Button>
)}
{!application.effectiveUrl && (
<span>
{application.clientName || application.clientId}
</span>
<>
{label(
t,
application.clientName || application.clientId,
)}
</>
)}
</DataListCell>,
<DataListCell

View file

@ -244,7 +244,7 @@ public class AccountRestService {
private ClientRepresentation modelToRepresentation(ClientModel model, List<String> inUseClients, List<String> offlineClients, Map<String, UserConsentModel> consents) {
ClientRepresentation representation = new ClientRepresentation();
representation.setClientId(model.getClientId());
representation.setClientName(StringPropertyReplacer.replaceProperties(model.getName(), getProperties()));
representation.setClientName(model.getName());
representation.setDescription(model.getDescription());
representation.setUserConsentRequired(model.isConsentRequired());
representation.setInUse(inUseClients.contains(model.getClientId()));