fix: rename duplicate 'purchases' i18n key to 'purchaseCount'

The admin.landings namespace had two 'purchases' keys at the same level:
a string for purchase count label and an object for purchases section.
JSON last-key-wins caused the string to be overwritten by the object,
producing "returned an object instead of string" error on landings list.
This commit is contained in:
Fringg
2026-03-07 13:22:08 +03:00
parent a404690334
commit 0ce74ea5fb
5 changed files with 5 additions and 5 deletions

View File

@@ -3192,7 +3192,7 @@
"metaDesc": "Meta Description", "metaDesc": "Meta Description",
"active": "Active", "active": "Active",
"inactive": "Inactive", "inactive": "Inactive",
"purchases": "purchases", "purchaseCount": "purchases",
"copyUrl": "Copy URL", "copyUrl": "Copy URL",
"urlCopied": "URL copied", "urlCopied": "URL copied",
"deleteConfirm": "Delete landing \"{{title}}\"?", "deleteConfirm": "Delete landing \"{{title}}\"?",

View File

@@ -2917,7 +2917,7 @@
"metaDesc": "توضیحات متا", "metaDesc": "توضیحات متا",
"active": "فعال", "active": "فعال",
"inactive": "غیرفعال", "inactive": "غیرفعال",
"purchases": "خرید", "purchaseCount": "خرید",
"copyUrl": "کپی URL", "copyUrl": "کپی URL",
"urlCopied": "URL کپی شد", "urlCopied": "URL کپی شد",
"deleteConfirm": "حذف صفحه فرود «{{title}}»؟", "deleteConfirm": "حذف صفحه فرود «{{title}}»؟",

View File

@@ -3743,7 +3743,7 @@
"metaDesc": "Meta Description", "metaDesc": "Meta Description",
"active": "Активен", "active": "Активен",
"inactive": "Неактивен", "inactive": "Неактивен",
"purchases": "покупок", "purchaseCount": "покупок",
"copyUrl": "Скопировать URL", "copyUrl": "Скопировать URL",
"urlCopied": "URL скопирован", "urlCopied": "URL скопирован",
"deleteConfirm": "Удалить лендинг «{{title}}»?", "deleteConfirm": "Удалить лендинг «{{title}}»?",

View File

@@ -2916,7 +2916,7 @@
"metaDesc": "Meta描述", "metaDesc": "Meta描述",
"active": "已激活", "active": "已激活",
"inactive": "未激活", "inactive": "未激活",
"purchases": "次购买", "purchaseCount": "次购买",
"copyUrl": "复制URL", "copyUrl": "复制URL",
"urlCopied": "URL已复制", "urlCopied": "URL已复制",
"deleteConfirm": "删除落地页「{{title}}」?", "deleteConfirm": "删除落地页「{{title}}」?",

View File

@@ -180,7 +180,7 @@ function SortableLandingCard({
</div> </div>
<div className="text-sm text-dark-400"> <div className="text-sm text-dark-400">
<span> <span>
{landing.purchase_stats.total} {t('admin.landings.purchases')} {landing.purchase_stats.total} {t('admin.landings.purchaseCount')}
</span> </span>
</div> </div>
</div> </div>