From ef2d1977d6d95b995be98317bae88a3cf789e369 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Thu, 15 Jun 2023 20:12:31 +0200 Subject: [PATCH] fix(webapp): rename sidebar localization keys names to be keyword path --- packages/webapp/src/constants/sidebarMenu.tsx | 174 +++++++++--------- packages/webapp/src/lang/en/index.json | 79 +++++++- 2 files changed, 161 insertions(+), 92 deletions(-) diff --git a/packages/webapp/src/constants/sidebarMenu.tsx b/packages/webapp/src/constants/sidebarMenu.tsx index e535467597..2e5356bbdf 100644 --- a/packages/webapp/src/constants/sidebarMenu.tsx +++ b/packages/webapp/src/constants/sidebarMenu.tsx @@ -31,7 +31,7 @@ export const SidebarMenu = [ // # Homepage // --------------- { - text: , + text: , type: ISidebarMenuItemType.Link, disabled: false, href: '/', @@ -41,20 +41,20 @@ export const SidebarMenu = [ // # Sales & Inventory // --------------- { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Items, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/items', type: ISidebarMenuItemType.Link, permission: { @@ -63,7 +63,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/inventory-adjustments', type: ISidebarMenuItemType.Link, permission: { @@ -72,7 +72,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/warehouses-transfers', type: ISidebarMenuItemType.Link, feature: Features.Warehouses, @@ -89,11 +89,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/items/new', type: ISidebarMenuItemType.Link, permission: { @@ -102,15 +102,13 @@ export const SidebarMenu = [ }, }, { - text: ( - - ), + text: , href: '/warehouses-transfers/new', type: ISidebarMenuItemType.Link, feature: Features.Warehouses, }, { - text: , + text: , href: '/items/new', type: ISidebarMenuItemType.Link, permission: { @@ -119,7 +117,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/items/categories/new', type: ISidebarMenuItemType.Dialog, dialogName: 'item-category-form', @@ -138,16 +136,16 @@ export const SidebarMenu = [ // # Sales // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Sales, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/estimates', type: ISidebarMenuItemType.Link, permission: { @@ -156,7 +154,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/invoices', type: ISidebarMenuItemType.Link, permission: { @@ -165,7 +163,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/receipts', type: ISidebarMenuItemType.Link, permission: { @@ -174,12 +172,12 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/credit-notes', type: ISidebarMenuItemType.Link, }, { - text: , + text: , href: '/payment-receives', type: ISidebarMenuItemType.Link, permission: { @@ -190,11 +188,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/estimates/new', type: ISidebarMenuItemType.Link, permission: { @@ -203,7 +201,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/invoices/new', type: ISidebarMenuItemType.Link, permission: { @@ -212,7 +210,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/receipts/new', type: ISidebarMenuItemType.Link, permission: { @@ -221,12 +219,12 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/credit-notes/new', type: ISidebarMenuItemType.Link, }, { - text: , + text: , href: '/payment-receives/new', type: ISidebarMenuItemType.Link, permission: { @@ -242,12 +240,12 @@ export const SidebarMenu = [ // # Purchases // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Purchases, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { @@ -276,11 +274,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/bills/new', type: ISidebarMenuItemType.Link, permission: { @@ -289,7 +287,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/vendor-credits/new', type: ISidebarMenuItemType.Link, permission: { @@ -298,7 +296,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/payment-mades/new', type: ISidebarMenuItemType.Link, permission: { @@ -314,16 +312,16 @@ export const SidebarMenu = [ // # Contacts // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Contacts, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/customers', type: ISidebarMenuItemType.Link, permission: { @@ -332,7 +330,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/vendors', type: ISidebarMenuItemType.Link, permission: { @@ -343,11 +341,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/customers/new', type: ISidebarMenuItemType.Link, permission: { @@ -356,7 +354,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/vendors/new', type: ISidebarMenuItemType.Link, permission: { @@ -372,20 +370,20 @@ export const SidebarMenu = [ // # Accounting // --------------- { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Financial, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/accounts', type: ISidebarMenuItemType.Link, permission: { @@ -394,7 +392,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/manual-journals', type: ISidebarMenuItemType.Link, permission: { @@ -410,11 +408,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/make-journal-entry', type: ISidebarMenuItemType.Link, permission: { @@ -441,7 +439,7 @@ export const SidebarMenu = [ type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/cashflow-accounts', type: ISidebarMenuItemType.Link, permission: { @@ -452,12 +450,12 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, divider: true, children: [ { - text: , + text: , href: '/cashflow-accounts', type: ISidebarMenuItemType.Dialog, dialogName: 'money-in', @@ -467,7 +465,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/cashflow-accounts', type: ISidebarMenuItemType.Dialog, permission: { @@ -476,7 +474,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/cashflow-accounts', type: ISidebarMenuItemType.Dialog, permission: { @@ -485,7 +483,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/cashflow-accounts', type: ISidebarMenuItemType.Dialog, permission: { @@ -501,16 +499,16 @@ export const SidebarMenu = [ // # Expenses // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Expenses, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/expenses', type: ISidebarMenuItemType.Link, permission: { @@ -521,11 +519,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/expenses/new', type: ISidebarMenuItemType.Link, permission: { @@ -541,16 +539,16 @@ export const SidebarMenu = [ // # Projects Management // --------------------- // { - // text: 'Projects', + // text: , // type: ISidebarMenuItemType.Overlay, // overlayId: ISidebarMenuOverlayIds.Projects, // children: [ // { - // text: 'Projects', + // text: , // type: ISidebarMenuItemType.Group, // children: [ // { - // text: 'Projects', + // text: , // href: '/projects', // type: ISidebarMenuItemType.Link, // permission: { @@ -561,11 +559,11 @@ export const SidebarMenu = [ // ], // }, // { - // text: , + // text: , // type: ISidebarMenuItemType.Group, // children: [ // { - // text: , + // text: , // type: ISidebarMenuItemType.Dialog, // dialogName: 'project-form', // permission: { @@ -574,18 +572,18 @@ export const SidebarMenu = [ // }, // }, // { - // text: , + // text: , // type: ISidebarMenuItemType.Dialog, // dialogName: 'project-time-entry-form', // }, // ], // }, // { - // text: , + // text: , // type: ISidebarMenuItemType.Group, // children: [ // { - // text: , + // text: , // href: '/financial-reports/project-profitability-summary', // type: ISidebarMenuItemType.Link, // }, @@ -597,16 +595,16 @@ export const SidebarMenu = [ // # Reports // --------------- { - text: , + text: , type: ISidebarMenuItemType.Overlay, overlayId: ISidebarMenuOverlayIds.Reports, children: [ { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/financial-reports/balance-sheet', type: ISidebarMenuItemType.Link, permission: { @@ -615,7 +613,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/trial-balance-sheet', type: ISidebarMenuItemType.Link, permission: { @@ -624,7 +622,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/journal-sheet', type: ISidebarMenuItemType.Link, permission: { @@ -633,7 +631,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/general-ledger', type: ISidebarMenuItemType.Link, permission: { @@ -642,7 +640,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/profit-loss-sheet', type: ISidebarMenuItemType.Link, permission: { @@ -651,7 +649,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/cash-flow', type: ISidebarMenuItemType.Link, permission: { @@ -660,7 +658,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/receivable-aging-summary', type: ISidebarMenuItemType.Link, permission: { @@ -669,7 +667,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/payable-aging-summary', type: ISidebarMenuItemType.Link, permission: { @@ -680,11 +678,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , type: ISidebarMenuItemType.Link, href: '/financial-reports/purchases-by-items', permission: { @@ -693,7 +691,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/sales-by-items', type: ISidebarMenuItemType.Link, permission: { @@ -702,7 +700,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/transactions-by-customers', type: ISidebarMenuItemType.Link, permission: { @@ -711,7 +709,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/transactions-by-vendors', type: ISidebarMenuItemType.Link, permission: { @@ -720,7 +718,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/customers-balance-summary', type: ISidebarMenuItemType.Link, permission: { @@ -729,7 +727,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/vendors-balance-summary', type: ISidebarMenuItemType.Link, permission: { @@ -740,11 +738,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/financial-reports/inventory-item-details', type: ISidebarMenuItemType.Link, permission: { @@ -753,7 +751,7 @@ export const SidebarMenu = [ }, }, { - text: , + text: , href: '/financial-reports/inventory-valuation', type: ISidebarMenuItemType.Link, permission: { @@ -766,11 +764,11 @@ export const SidebarMenu = [ ], }, { - text: , + text: , type: ISidebarMenuItemType.Group, children: [ { - text: , + text: , href: '/preferences', type: ISidebarMenuItemType.Link, permission: { diff --git a/packages/webapp/src/lang/en/index.json b/packages/webapp/src/lang/en/index.json index b1911f1123..60cacb3a0c 100644 --- a/packages/webapp/src/lang/en/index.json +++ b/packages/webapp/src/lang/en/index.json @@ -1193,6 +1193,7 @@ "edit_contact": "Edit {name}", "item.sell_description": "Sell description", "item.purchase_description": "Purchase description", + "item.view_drawer.make_adjustment": "Make an adjustment", "closed_date": "Closed date", "payment_made.details.payment_number": "Payment #", "payment_made.details.subtotal": "Subtotal", @@ -1539,7 +1540,6 @@ "roles.error.you_cannot_delete_predefined_roles": "You cannot delete predefined roles.", "roles.error.the_submit_role_has_invalid_permissions": "The submit role has invalid permissions.", "roles.error.you_cannot_delete_role_that_associated_to_users": "You cannot delete role that associated to users", - "sidebar_credit_note": "Credit Notes", "credit_note.label_create_note_list": "Credit Notes List", "credit_note.label.new_credit_note": "New Credit Note", "credit_note.label.edit_credit_note": "Edit Credit Note", @@ -2049,7 +2049,6 @@ "warehouse_transfer.entries.remove_row": "Remove line", "item.details.inactive": "Inactive", "bill.validation.due_date": "{path} field must be later than {min}", - "sidebar.projects": "Projects", "projects.action.edit_project": "Edit Project", "projects.action.new_task": "New Task", "projects.action.delete_project": "Delete Project", @@ -2232,7 +2231,79 @@ "project_billable_entries.alert.there_is_no_billable_entries": "There is no billable entries for that project.", "project_billable_entries.billable_type": "Billable {value}", "add_billable_entries": "Add Billable Entries", - "invite_user.label.email": "Email", - "invite_user.label.role_name": "Role name" + "invite_user.label.role_name": "Role name", + "universl_search.items": "Items", + "sidebar.homepage": "Homepage", + "sidebar.sales_inventory": "Sales & Inventory", + "sidebar.items": "Items", + "sidebar.inventory_adjustments": "Inventory Adjustments", + "sidebar.warehouse_transfer": "Warehouse Transfers", + "sidebar.categories": "Categories", + "sidebar.new_tasks": "New Tasks", + "sidebar.new_inventory_item": "New Inventory Item", + "sidebar.new_warehouse_transfer": "New Warehouse Transfer", + "sidebar.new_service": "New Service", + "sidebar.new_item_category": "New Item Category", + "sidebar.sales": "Sales", + "sidebar.estimates": "Estimates", + "sidebar.invoices": "Invoices", + "sidebar.receipts": "Receipts", + "sidebar.credit_notes": "Credit Notes", + "sidebar.payment_receives": "Payment Receives", + "sidebar.purchases": "Purchases", + "sidebar.bills": "Bills", + "sidebar.vendor_credits": "Vendor Credits", + "sidebar.payment_mades": "Payment Mades", + "sidebar.new_purchase_invoice": "New Purchase Invoice", + "sidebar.new_vendor_credit": "New Vendor Credit", + "sidebar.new_payment_made": "New Payment Made", + "sidebar.vendors": "Vendors", + "sidebar.customers": "Customers", + "sidebar.contacts": "Contacts", + "sidebar.new_customer": "New Customer", + "sidebar.new_vendor": "New Vendor", + "sidebar.new_receipt": "New Receipt", + "sidebar.new_invoice": "New Invoice", + "sidebar.new_estimate": "New Estimate", + "sidebar.new_credit_note": "New Credit Note", + "sidebar.new_payment_receive": "New Payment Receive", + "sidebar.accounting": "Accounting", + "sidebar.financial": "Financial", + "sidebar.accounts_chart": "Accounts Chart", + "sidebar.manual_journals": "Manual Journals", + "sidebar.transactions_locking": "Transactions Locking", + "sidebar.make_journal_entry": "Make Journal Entry", + "sidebar.reports": "Reports", + "sidebar.balance_sheet": "Balance Sheet", + "sidebar.trial_balance_sheet": "Trial Balance Sheet", + "sidebar.journal": "Journal", + "sidebar.general_ledger": "General Ledger", + "sidebar.profit_loss_sheet": "Profit/Loss Sheet", + "sidebar.cash_flow_statement": "Cashflow Statement", + "sidebar.ar_aging_Summary": "A/R Aging Summary", + "sidebar.ap_aging_summary": "A/P Aging Summary", + "sidebar.preferences": "Preferences", + "sidebar.expenses": "Expenses", + "sidebar.new_expense": "New Expense", + "sidebar.cash_bank_accounts": "Cash/Bank Accounts", + "sidebar.add_money_in": "Add Money In", + "sidebar.add_money_out": "Add Money Out", + "sidebar.add_cash_account": "Add Cash Account", + "sidebar.add_bank_account": "Add Bank Account", + "sidebar.purchases_by_items": "Purchases by Items", + "sidebar.sales_by_items": "Sales by Items", + "sidebar.customers_transactions": "Customers Transactions", + "sidebar.vendors_transactions": "Vendors Transactions", + "sidebar.customers_balance_summary": "Customer Balance Summary", + "sidebar.vendors_balance_summary": "Vendor Balance Summary", + "sidebar.inventory": "Inventory", + "sidebar.inventory_item_details": "Inventory Item Details", + "sidebar.inventory_valuation": "Inventory Valuation", + "sidebar.sales_purchases": "Sales/Purchases", + "sidebar.system": "System", + "sidebar.projects": "Projects", + "sidebar.new_project": "New Project", + "sidebar.new_time_entry": "New Time Entry", + "sidebar.project_profitability_summary": "Project Profitability Summary" } \ No newline at end of file