feat: localize the preferences menu

This commit is contained in:
Ahmed Bouhuolia
2023-12-16 19:37:20 +02:00
parent 6953f7c4a3
commit a862ee9ccf
2 changed files with 5 additions and 4 deletions

View File

@@ -13,19 +13,19 @@ export default [
href: '/preferences/users', href: '/preferences/users',
}, },
{ {
text: 'Estimates', text: <T id={'preferences.estimates'} />,
href: '/preferences/estimates', href: '/preferences/estimates',
}, },
{ {
text: 'Invoices', text: <T id={'preferences.invoices'} />,
href: '/preferences/invoices', href: '/preferences/invoices',
}, },
{ {
text: 'Receipts', text: <T id={'preferences.receipts'} />,
href: '/preferences/receipts', href: '/preferences/receipts',
}, },
{ {
text: 'Credit Notes', text: <T id={'preferences.creditNotes'} />,
href: '/preferences/credit-notes', href: '/preferences/credit-notes',
}, },
{ {

View File

@@ -9,6 +9,7 @@ import { AppToaster } from '@/components';
import { PreferencesEstimatesFormSchema } from './PreferencesEstimatesForm.schema'; import { PreferencesEstimatesFormSchema } from './PreferencesEstimatesForm.schema';
import { PreferencesEstimatesForm } from './PreferencesEstimatesForm'; import { PreferencesEstimatesForm } from './PreferencesEstimatesForm';
import withDashboardActions from '@/containers/Dashboard/withDashboardActions'; import withDashboardActions from '@/containers/Dashboard/withDashboardActions';
import withSettings from '@/containers/Settings/withSettings';
import { transferObjectOptionsToArray } from '../Accountant/utils'; import { transferObjectOptionsToArray } from '../Accountant/utils';
import { compose, transformToForm, transfromToSnakeCase } from '@/utils'; import { compose, transformToForm, transfromToSnakeCase } from '@/utils';