From f537a8a60133d4d6a11b082873c213242b6da351 Mon Sep 17 00:00:00 2001 From: addison Date: Fri, 5 Feb 2021 12:44:45 -0500 Subject: [PATCH] cleanup --- src/app/app-routing.module.ts | 3 ++- src/app/layout/nav.component.ts | 7 +++++-- src/locales/en/messages.json | 9 +++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 33b430fb03..d7e48efc62 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -14,9 +14,10 @@ import { SetPasswordComponent } from './accounts/set-password.component'; import { SsoComponent } from './accounts/sso.component'; import { TwoFactorComponent } from './accounts/two-factor.component'; -import { VaultComponent } from './vault/vault.component'; import { SendComponent } from './send/send.component'; +import { VaultComponent } from './vault/vault.component'; + const routes: Routes = [ { path: '', redirectTo: '/vault', pathMatch: 'full' }, { path: 'lock', component: LockComponent }, diff --git a/src/app/layout/nav.component.ts b/src/app/layout/nav.component.ts index ea7a24018b..1aac3de058 100644 --- a/src/app/layout/nav.component.ts +++ b/src/app/layout/nav.component.ts @@ -1,4 +1,5 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; +import { I18nService } from 'jslib/abstractions/i18n.service'; @Component({ selector: 'app-nav', @@ -9,7 +10,7 @@ export class NavComponent { { link: '/vault', icon: 'fa-lock', - label: 'My Vault', + label: this.i18nService.translate('myVault'), }, { link: '/send', @@ -17,4 +18,6 @@ export class NavComponent { label: 'Send', }, ]; + + constructor(private i18nService: I18nService) {} } diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index af729b7b9d..57dcbcc9ae 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -1499,7 +1499,8 @@ "message": "An organization policy is affecting your ownership options." }, "allSends": { - "message": "All Sends" + "message": "All Sends", + "description": "'Sends' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendTypeFile": { "message": "File" @@ -1512,6 +1513,10 @@ "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendInformation": { - "message": "Send Information" + "message": "Send Information", + "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." + }, + "myVault": { + "message": "My Vault" } }