[SM-876] Beta - remove beta word from product switcher and don't use localization (#5959)
* updating product switcher to be localized and not say beta * removing unused code * Adding storybook messages i18n * Removing localization * removing localization * removing localization
This commit is contained in:
parent
8613b83d98
commit
b7fbab84f5
|
@ -22,7 +22,7 @@
|
||||||
>
|
>
|
||||||
<i class="bwi {{ product.icon }} tw-text-4xl !tw-m-0 !tw-mb-1"></i>
|
<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">{{
|
<span class="tw-text-center tw-text-sm tw-leading-snug group-hover:tw-underline">{{
|
||||||
product.name | i18n
|
product.name
|
||||||
}}</span>
|
}}</span>
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<span class="tw-flex tw-items-center tw-font-normal">
|
<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 | i18n }}
|
<i class="bwi bwi-fw {{ product.icon }} tw-m-0 !tw-mr-3"></i>{{ product.name }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -57,21 +57,21 @@ export class ProductSwitcherContentComponent {
|
||||||
*/
|
*/
|
||||||
const products: Record<"pm" | "sm" | "orgs", ProductSwitcherItem> = {
|
const products: Record<"pm" | "sm" | "orgs", ProductSwitcherItem> = {
|
||||||
pm: {
|
pm: {
|
||||||
name: "passwordManager",
|
name: "Password Manager",
|
||||||
icon: "bwi-lock",
|
icon: "bwi-lock",
|
||||||
appRoute: "/vault",
|
appRoute: "/vault",
|
||||||
marketingRoute: "https://bitwarden.com/products/personal/",
|
marketingRoute: "https://bitwarden.com/products/personal/",
|
||||||
isActive: !this.router.url.includes("/sm/"),
|
isActive: !this.router.url.includes("/sm/"),
|
||||||
},
|
},
|
||||||
sm: {
|
sm: {
|
||||||
name: "secretsManager",
|
name: "Secrets Manager",
|
||||||
icon: "bwi-cli",
|
icon: "bwi-cli",
|
||||||
appRoute: ["/sm", smOrg?.id],
|
appRoute: ["/sm", smOrg?.id],
|
||||||
marketingRoute: "https://bitwarden.com/products/secrets-manager/",
|
marketingRoute: "https://bitwarden.com/products/secrets-manager/",
|
||||||
isActive: this.router.url.includes("/sm/"),
|
isActive: this.router.url.includes("/sm/"),
|
||||||
},
|
},
|
||||||
orgs: {
|
orgs: {
|
||||||
name: "organizations",
|
name: "Organizations",
|
||||||
icon: "bwi-business",
|
icon: "bwi-business",
|
||||||
marketingRoute: "https://bitwarden.com/products/business/",
|
marketingRoute: "https://bitwarden.com/products/business/",
|
||||||
},
|
},
|
||||||
|
|
|
@ -59,9 +59,6 @@ export default {
|
||||||
return new I18nMockService({
|
return new I18nMockService({
|
||||||
moreFromBitwarden: "More from Bitwarden",
|
moreFromBitwarden: "More from Bitwarden",
|
||||||
switchProducts: "Switch Products",
|
switchProducts: "Switch Products",
|
||||||
passwordManager: "Password Manager",
|
|
||||||
secretsManager: "Secrets Manager",
|
|
||||||
organizations: "Organizations",
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue