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

View File

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