mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
[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
This commit is contained in:
parent
8eaca1608a
commit
5832235e47
@ -22,7 +22,7 @@
|
||||
>
|
||||
<i class="bwi {{ product.icon }} tw-text-4xl !tw-m-0 !tw-mb-1"></i>
|
||||
<span class="tw-text-center tw-text-sm tw-leading-snug group-hover:tw-underline">{{
|
||||
product.name
|
||||
product.name | i18n
|
||||
}}</span>
|
||||
</a>
|
||||
</section>
|
||||
@ -41,7 +41,7 @@
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<span class="tw-flex tw-items-center tw-font-normal">
|
||||
<i class="bwi bwi-fw {{ product.icon }} tw-m-0 !tw-mr-3"></i>{{ product.name }}
|
||||
<i class="bwi bwi-fw {{ product.icon }} tw-m-0 !tw-mr-3"></i> {{ product.name | i18n }}
|
||||
</span>
|
||||
</a>
|
||||
</section>
|
||||
|
@ -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/",
|
||||
},
|
||||
|
@ -59,6 +59,9 @@ export default {
|
||||
return new I18nMockService({
|
||||
moreFromBitwarden: "More from Bitwarden",
|
||||
switchProducts: "Switch Products",
|
||||
passwordManager: "Password Manager",
|
||||
secretsManager: "Secrets Manager",
|
||||
organizations: "Organizations",
|
||||
});
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user