refactor: updated navigation config and navigation en locale regarding existing pages
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
const locale = {
|
const en = {
|
||||||
APPLICATIONS: 'Applications',
|
dashboard: 'Dashboard',
|
||||||
EXAMPLE: 'Example',
|
favorites: 'Favorites',
|
||||||
|
history: 'History',
|
||||||
|
my_profile: 'My profile',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default locale;
|
export default en;
|
||||||
|
|||||||
@@ -1,20 +1,36 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
import ar from './navigation-i18n/ar';
|
|
||||||
import en from './navigation-i18n/en';
|
import en from './navigation-i18n/en';
|
||||||
import tr from './navigation-i18n/tr';
|
|
||||||
|
|
||||||
i18next.addResourceBundle('en', 'navigation', en);
|
i18next.addResourceBundle('en', 'navigation', en);
|
||||||
i18next.addResourceBundle('tr', 'navigation', tr);
|
|
||||||
i18next.addResourceBundle('ar', 'navigation', ar);
|
|
||||||
|
|
||||||
const navigationConfig = [
|
const navigationConfig = [
|
||||||
{
|
{
|
||||||
id: 'example-component',
|
id: 'dashboard',
|
||||||
title: 'Example',
|
title: en.dashboard,
|
||||||
translate: 'EXAMPLE',
|
|
||||||
type: 'item',
|
type: 'item',
|
||||||
icon: 'heroicons-outline:star',
|
icon: 'heroicons-outline:view-grid',
|
||||||
url: 'example',
|
url: 'dashboard',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'favorites',
|
||||||
|
title: en.favorites,
|
||||||
|
type: 'item',
|
||||||
|
icon: 'heroicons-outline:heart',
|
||||||
|
url: 'favorites',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'history',
|
||||||
|
title: en.history,
|
||||||
|
type: 'item',
|
||||||
|
icon: 'heroicons-outline:archive',
|
||||||
|
url: 'history',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'my-profile',
|
||||||
|
title: en.my_profile,
|
||||||
|
type: 'item',
|
||||||
|
icon: 'heroicons-outline:user-circle',
|
||||||
|
url: 'my-profile',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user