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