Add new translation messages for view header.

This commit is contained in:
Alec Rippberger 2024-07-17 11:54:06 -05:00
parent 180bc299f8
commit 4e8877fe71
No known key found for this signature in database
GPG Key ID: 9DD8DA583B28154A
2 changed files with 16 additions and 4 deletions

View File

@ -423,6 +423,9 @@
"note": {
"message": "Note"
},
"noteLowercase": {
"message": "note"
},
"editItem": {
"message": "Edit item"
},
@ -1456,6 +1459,9 @@
"typeLogin": {
"message": "Login"
},
"typeLoginLowercase": {
"message": "login"
},
"typeLogins": {
"message": "Logins"
},
@ -1465,9 +1471,15 @@
"typeCard": {
"message": "Card"
},
"typeCardLowercase": {
"message": "card"
},
"typeIdentity": {
"message": "Identity"
},
"typeIdentityLowercase": {
"message": "identity"
},
"newItemHeader":{
"message": "New $TYPE$",
"placeholders": {

View File

@ -87,13 +87,13 @@ export class ViewV2Component {
setHeader(type: CipherType) {
switch (type) {
case CipherType.Login:
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeLogin"));
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeLoginLowercase"));
case CipherType.Card:
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeCard"));
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeCardLowercase"));
case CipherType.Identity:
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeIdentity"));
return this.i18nService.t("viewItemHeader", this.i18nService.t("typeIdentityLowercase"));
case CipherType.SecureNote:
return this.i18nService.t("viewItemHeader", this.i18nService.t("note").toLowerCase());
return this.i18nService.t("viewItemHeader", this.i18nService.t("noteLowercase"));
}
}