fix(backoffice): wording quality pass across orders, moderation, transactions, users, customers
- Replaced hardcoded English audit/timeline text (order status changes,
review moderation events, user role/status changes) with proper
adminXxx.timelineEvent.*/adminUsers.audit.* i18n keys, so Recent
Activity/Timeline/Audit panels no longer mix English into ru/hy UI.
- Translated raw internal codes rendered directly to users: transaction
payment method ('card'/'qr'/'cash_on_delivery' -> adminTransactions.methodValue.*)
and user roles/permissions ('products.manage' etc -> adminUsers.roleValue.*/
adminUsers.permission.*), replacing developer-facing enum leakage with
real copy.
- Fixed wrong-noun list-footer counts: Orders/Transactions/Moderation
list pages all reused adminProducts.items ("N товаров"/"N products")
regardless of what was actually listed; each now has its own itemsCount
key ("N заказов", "N транзакций", "N отзывов").
- Fixed customer detail page's "Back" button reusing adminOrders.back
("Back to orders") instead of a customers-specific label.
- Added translation keys to en/ru/hy + translations.ts interface for all
of the above.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1226,6 +1226,7 @@ export const hy: Translations = {
|
||||
adminModeration: {
|
||||
search: 'Փնտրել ըստ հաճախորդի, ապրանքի կամ կարծիքի տեքստի…',
|
||||
selectAllRows: 'Ընտրել բոլոր կարծիքները',
|
||||
itemsCount: 'կարծիք',
|
||||
allStatuses: 'Բոլոր կարգավիճակները',
|
||||
allRatings: 'Բոլոր գնահատականները',
|
||||
rating: 'Գնահատական',
|
||||
@@ -1282,6 +1283,16 @@ export const hy: Translations = {
|
||||
rejected: 'Մերժված',
|
||||
spam: 'Սպամ',
|
||||
},
|
||||
timelineEvent: {
|
||||
submitted: 'Կարծիքն ուղարկվել է',
|
||||
statusChanged: 'Կարգավիճակը փոխվել է՝ «{{status}}»',
|
||||
restored: 'Կարծիքը վերականգնվել է',
|
||||
hidden: 'Կարծիքը թաքցվել է',
|
||||
},
|
||||
actor: {
|
||||
admin: 'Ադմինիստրատոր',
|
||||
customer: 'Հաճախորդ',
|
||||
},
|
||||
targetType: {
|
||||
product: 'Ապրանք',
|
||||
review: 'Կարծիք',
|
||||
@@ -1310,6 +1321,11 @@ export const hy: Translations = {
|
||||
createdAt: 'Ստեղծված է',
|
||||
items: 'Ապրանքներ',
|
||||
timeline: 'Ժամանակագրություն',
|
||||
timelineEvent: {
|
||||
created: 'Պատվերը ստեղծվել է',
|
||||
statusChanged: 'Կարգավիճակը փոխվել է՝ «{{status}}»',
|
||||
refundRequested: 'Հայցվել է վերադարձ',
|
||||
},
|
||||
notes: 'Նշումներ հաճախորդի համար',
|
||||
internalNotes: 'Ներքին նշումներ',
|
||||
addNote: 'Ավելացնել նշում',
|
||||
@@ -1344,6 +1360,7 @@ export const hy: Translations = {
|
||||
refund_requested: 'Հայցվել է վերադարձ',
|
||||
refunded: 'Վերադարձված',
|
||||
},
|
||||
itemsCount: 'պատվեր',
|
||||
ordersToday: 'Այսօրվա պատվերներ',
|
||||
paidCount: 'Վճարված',
|
||||
customersCount: 'Հաճախորդներ',
|
||||
@@ -1355,6 +1372,7 @@ export const hy: Translations = {
|
||||
alertRefundRequested: 'պատվեր սպասում է վերադարձի հայցի',
|
||||
},
|
||||
adminCustomers: {
|
||||
back: 'Վերադառնալ հաճախորդներին',
|
||||
search: 'Փնտրել ըստ անվան, էլ. փոստի կամ հեռախոսի…',
|
||||
name: 'Անուն',
|
||||
email: 'Էլ. փոստ',
|
||||
@@ -1744,11 +1762,34 @@ export const hy: Translations = {
|
||||
expired: 'Ժամկետանց',
|
||||
revoked: 'Չեղարկված',
|
||||
},
|
||||
roleValue: {
|
||||
owner: 'Սեփականատեր',
|
||||
admin: 'Ադմինիստրատոր',
|
||||
editor: 'Խմբագիր',
|
||||
viewer: 'Դիտող',
|
||||
},
|
||||
permission: {
|
||||
all: 'Ամբողջական հասանելիություն',
|
||||
productsManage: 'Ապրանքների կառավարում',
|
||||
productsView: 'Ապրանքների դիտում',
|
||||
categoriesManage: 'Կատեգորիաների կառավարում',
|
||||
ordersManage: 'Պատվերների կառավարում',
|
||||
ordersView: 'Պատվերների դիտում',
|
||||
mediaManage: 'Մեդիադարանի կառավարում',
|
||||
},
|
||||
actor: {
|
||||
admin: 'Ադմինիստրատոր',
|
||||
},
|
||||
audit: {
|
||||
roleChanged: 'Դերը փոխվել է՝ «{{role}}»',
|
||||
statusChanged: 'Կարգավիճակը փոխվել է՝ «{{status}}»',
|
||||
},
|
||||
},
|
||||
adminTransactions: {
|
||||
search: 'Գործարքների որոնում',
|
||||
type: 'Տեսակ',
|
||||
method: 'Վճարման եղանակ',
|
||||
itemsCount: 'գործարք',
|
||||
fraud: 'Խարդախության ստուգում',
|
||||
flagged: 'Նշված',
|
||||
flag: 'Նշել որպես կասկածելի',
|
||||
@@ -1770,6 +1811,11 @@ export const hy: Translations = {
|
||||
refund: 'Վերադարձ',
|
||||
qr_payment: 'QR վճարում',
|
||||
},
|
||||
methodValue: {
|
||||
card: 'Քարտ',
|
||||
qr: 'QR կոդ',
|
||||
cash_on_delivery: 'Կանխիկ առաքման ժամանակ',
|
||||
},
|
||||
},
|
||||
adminMonitoring: {
|
||||
eventsEmptyTitle: 'Իրադարձություններ չեն գտնվել',
|
||||
|
||||
Reference in New Issue
Block a user