Refactor localization keys to use dot notation for consistency across… (#464)

* Refactor localization keys to use dot notation for consistency across documentation and components

* chore: bump version to 3.0.1 in package.json

* Remove console log from SidebarLayout and update migration documentation for AlertDialog usage within Dropdowns

* Update dashboard image to improve visual assets
This commit is contained in:
Giancarlo Buomprisco
2026-03-24 16:46:04 +08:00
committed by GitHub
parent 7ebff31475
commit f9dfdf3ac8
9 changed files with 77 additions and 22 deletions

View File

@@ -159,7 +159,7 @@ function PricingItem(
const lineItem = props.primaryLineItem!;
const isCustom = props.plan.custom ?? false;
const i18nKey = `billing.units.${lineItem.unit}` as never;
const i18nKey = lineItem?.unit ? `billing.units.${lineItem.unit}` : '';
const unitLabel = lineItem?.unit
? t.has(i18nKey)