This is an automated email from the ASF dual-hosted git repository. riemer pushed a commit to branch add-option-to-manually-change-language in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 5773802c5886278ce161f6201c8fb70e708458f3 Author: Dominik Riemer <[email protected]> AuthorDate: Thu Oct 23 20:59:53 2025 +0200 Fix translations --- ui/deployment/i18n/de.json | 4 +++- ui/deployment/i18n/en.json | 4 +++- ui/src/app/core/components/streampipes/streampipes.component.ts | 3 +-- .../components/general/general-profile-settings.component.html | 7 +++++-- .../components/token/token-management-settings.component.html | 5 +++-- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ui/deployment/i18n/de.json b/ui/deployment/i18n/de.json index feb5828fb9..5685d6ecad 100644 --- a/ui/deployment/i18n/de.json +++ b/ui/deployment/i18n/de.json @@ -8,11 +8,13 @@ "Create new API key": "Neuen API-Schlüssel erstellen", "Key created": "Schlüssel erstellt", "Existing API keys": "Vorhandene API-Schlüssel", + "no keys available": "keine Schlüssel verfügbar", "API Docs": "API-Doku", "View the documentation of the API. Here you can see all provided endpoints and how to query them.": "Anzeigen der API-Dokumentation. Bereitgestellte Endpunkte und Funktionen einsehen.", "View API Docs": "API-Doku anzeigen", "Profile": "Profil", - "Manage your basic profile settings here.": "Grundlegenden Profileinstellungen verwalten.", + "Manage your basic profile settings here": "Grundlegende Profileinstellungen verwalten", + "Settings for externally-managed users cannot be changed": "Einstellungen für extern verwaltete Benutzer können nicht geändert werden", "Change email": "E-Mail ändern", "Full name": "Vor- und Nachname", "Update profile": "Profil aktualisieren", diff --git a/ui/deployment/i18n/en.json b/ui/deployment/i18n/en.json index 3416797bfc..052cfc2636 100644 --- a/ui/deployment/i18n/en.json +++ b/ui/deployment/i18n/en.json @@ -8,11 +8,13 @@ "Create new API key": null, "Key created": null, "Existing API keys": null, + "no keys available": null, "API Docs": null, "View the documentation of the API. Here you can see all provided endpoints and how to query them.": null, "View API Docs": null, "Profile": null, - "Manage your basic profile settings here.": null, + "Manage your basic profile settings here": null, + "Settings for externally-managed users cannot be changed": null, "Change email": null, "Full name": null, "Update profile": null, diff --git a/ui/src/app/core/components/streampipes/streampipes.component.ts b/ui/src/app/core/components/streampipes/streampipes.component.ts index e4d96b3580..99b5d1cd79 100644 --- a/ui/src/app/core/components/streampipes/streampipes.component.ts +++ b/ui/src/app/core/components/streampipes/streampipes.component.ts @@ -47,8 +47,7 @@ export class StreampipesComponent implements OnInit { ngOnInit(): void { this.currentUserService.darkMode$.subscribe(dm => (this.darkMode = dm)); this.currentUserService.user$.subscribe(user => { - console.log(user); - if (user.language !== 'browser') { + if (user.language !== null && user.language !== 'browser') { this.translate.use(user.language); } }); diff --git a/ui/src/app/profile/components/general/general-profile-settings.component.html b/ui/src/app/profile/components/general/general-profile-settings.component.html index c38ea2999f..b29e11039e 100644 --- a/ui/src/app/profile/components/general/general-profile-settings.component.html +++ b/ui/src/app/profile/components/general/general-profile-settings.component.html @@ -25,10 +25,13 @@ > <sp-split-section [title]="'Profile' | translate" - [subtitle]="'Manage your basic profile settings here.' | translate" + [subtitle]="'Manage your basic profile settings here' | translate" > <sp-warning-box *ngIf="isExternalUser"> - {{ 'Settings for externally-managed users can't be changed.' | translate }} + {{ + 'Settings for externally-managed users cannot be changed' + | translate + }} </sp-warning-box> <div fxLayout="row" fxLayoutAlign="start center"> <span>{{ userData.username }}</span> diff --git a/ui/src/app/profile/components/token/token-management-settings.component.html b/ui/src/app/profile/components/token/token-management-settings.component.html index d050fea41b..d70c7f961c 100644 --- a/ui/src/app/profile/components/token/token-management-settings.component.html +++ b/ui/src/app/profile/components/token/token-management-settings.component.html @@ -53,7 +53,8 @@ " > {{ - 'Token name must be at least 3 characters long and contain only alphanumeric characters, hyphens, or underscores.' + 'Token name must be at least 3 characters long and contain only alphanumeric ' + + 'characters, hyphens, or underscores.' | translate }} </mat-error> @@ -111,7 +112,7 @@ {{ 'Existing API keys' | translate }} </div> <div *ngIf="userData.userApiTokens.length === 0"> - ({{ 'no keys available | translate' }}) + ({{ 'no keys available' | translate }}) </div> <table mat-table
