From 5832235e478e1d0d25e9f142b0db66c84d231bac Mon Sep 17 00:00:00 2001 From: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:21:21 -0400 Subject: [PATCH] [SM-876] removing beta from product switcher and localizing (#5951) * updating product switcher to be localized and not say beta * removing unused code * Adding storybook messages i18n --- .../product-switcher-content.component.html | 4 ++-- .../product-switcher/product-switcher-content.component.ts | 6 +++--- .../layouts/product-switcher/product-switcher.stories.ts | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html index 293c024ac4..35b8b11b8e 100644 --- a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html +++ b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html @@ -22,7 +22,7 @@ > {{ - product.name + product.name | i18n }} @@ -41,7 +41,7 @@ rel="noopener noreferrer" > - {{ product.name }} + {{ product.name | i18n }} diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts index 95b4c04d5e..3d513d5df3 100644 --- a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts +++ b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts @@ -57,21 +57,21 @@ export class ProductSwitcherContentComponent { */ const products: Record<"pm" | "sm" | "orgs", ProductSwitcherItem> = { pm: { - name: "Password Manager", + name: "passwordManager", icon: "bwi-lock", appRoute: "/vault", marketingRoute: "https://bitwarden.com/products/personal/", isActive: !this.router.url.includes("/sm/"), }, sm: { - name: "Secrets Manager Beta", + name: "secretsManager", icon: "bwi-cli", appRoute: ["/sm", smOrg?.id], marketingRoute: "https://bitwarden.com/products/secrets-manager/", isActive: this.router.url.includes("/sm/"), }, orgs: { - name: "Organizations", + name: "organizations", icon: "bwi-business", marketingRoute: "https://bitwarden.com/products/business/", }, diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts b/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts index 87e4202747..81287f97b4 100644 --- a/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts +++ b/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts @@ -59,6 +59,9 @@ export default { return new I18nMockService({ moreFromBitwarden: "More from Bitwarden", switchProducts: "Switch Products", + passwordManager: "Password Manager", + secretsManager: "Secrets Manager", + organizations: "Organizations", }); }, },