Skip to content

Commit f14e1ed

Browse files
committed
fix(profile): Service access page localization
* czech localization for service access page was added to user profile
1 parent daee5fa commit f14e1ed

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

apps/user-profile/src/app/app.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,13 @@ export class AppComponent implements OnInit, AfterViewInit {
6565
this.isLoginScreenShown = this.initAuth.isLoginScreenShown();
6666
this.isServiceAccess = this.initAuth.isServiceAccessLoginScreenShown();
6767
sessionStorage.removeItem('baLogout');
68-
if (this.isLoginScreenShown) {
68+
if (this.isLoginScreenShown || this.isServiceAccess) {
6969
const preferredLanguage = this.preferredLangService.getPreferredLanguage(null);
7070
this.headerLabel = this.store.getProperty(
7171
preferredLanguage === 'en' ? 'header_label_en' : 'header_label_cs'
7272
);
7373
return;
7474
}
75-
if (this.isServiceAccess) {
76-
return;
77-
}
7875
this.attributesManagerService
7976
.getUserAttributes(this.store.getPerunPrincipal().userId)
8077
.subscribe((atts) => {

apps/user-profile/src/assets/i18n/cs.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@
242242
"SIGN_IN": "Přihlásit se",
243243
"TEXT": "Pro pokračování se přihlaste."
244244
},
245+
"LOGIN_SERVICE_ACCESS": {
246+
"LABEL": "Přihlásit se",
247+
"USERNAME": "Uživatelské jméno",
248+
"USERNAME_ERROR": "Uživatelské jméno nemůže být prázdné",
249+
"PASSWORD": "Heslo",
250+
"PASSWORD_ERROR": "Heslo nemůže být prázdné",
251+
"SIGN_IN": "Přihlásit se",
252+
"WRONG_LOGIN_OR_PASSWORD": "Nesprávné uživatelské jméno nebo heslo. Zkuste to znovu."
253+
},
245254
"COMPONENTS": {
246255
"GROUPS_LIST": {
247256
"TABLE_GROUP_ID": "Id",

0 commit comments

Comments
 (0)