for secrets manager show SM title (#5780)

* for secrets manager show SM title

* removing convoluted i18 conversion

* removing unused messages, and updating navbar to use the proper messages
This commit is contained in:
cd-bitwarden 2023-07-26 20:53:09 -04:00 committed by GitHub
parent 090a5bcced
commit 0fc0e6226f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 12 deletions

View File

@ -23,7 +23,12 @@ export class RouterService {
.subscribe((event: NavigationEnd) => {
this.currentUrl = event.url;
let title = i18nService.t("pageTitle", "Bitwarden");
let title = i18nService.t("bitWebVault");
if (this.currentUrl.includes("/sm/")) {
title = i18nService.t("bitSecretsManager");
}
let child = this.activatedRoute.firstChild;
while (child.firstChild) {
child = child.firstChild;

View File

@ -1,6 +1,6 @@
<nav class="navbar navbar-expand navbar-dark" [ngClass]="{ 'nav-background-alt': selfHosted }">
<div class="container">
<a class="navbar-brand" routerLink="/" appA11yTitle="{{ 'pageTitle' | i18n : 'Bitwarden' }}">
<a class="navbar-brand" routerLink="/" appA11yTitle="{{ 'bitWebVault' | i18n }}">
<i class="bwi bwi-shield" aria-hidden="true"></i>
</a>
<div class="collapse navbar-collapse">

View File

@ -1,14 +1,4 @@
{
"pageTitle": {
"message": "$APP_NAME$ Web Vault",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "What type of item is this?"
},
@ -2645,6 +2635,12 @@
"webVault": {
"message": "Web vault"
},
"bitWebVault": {
"message": "Bitwarden Web vault"
},
"bitSecretsManager": {
"message": "Bitwarden Secrets Manager"
},
"loggedIn": {
"message": "Logged in"
},