Polish business FA layout and wire special-group keys plus SSL sync.
RTL carousels/FABs, special key+title fields, slider gallery fixes, and dashboard SSL sync agent for super-admin. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
66004a0fba
commit
672091d1f5
@@ -93,6 +93,9 @@ export function groupStoreItemsByProduct(items: StoreItem[]): StoreProductListin
|
||||
)
|
||||
}
|
||||
|
||||
export function formatVariantCount(count: number): string {
|
||||
export function formatVariantCount(count: number, locale: 'en' | 'fa' = 'en'): string {
|
||||
if (locale === 'fa') {
|
||||
return count === 1 ? '۱ تنوع' : `${count} تنوع`
|
||||
}
|
||||
return count === 1 ? '1 variant' : `${count} variants`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user