refactor: updated navigation config and navigation en locale regarding existing pages

This commit is contained in:
2023-06-02 21:32:43 +01:00
parent a44f366ba1
commit b913ae75a6
2 changed files with 31 additions and 13 deletions

View File

@@ -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;

View File

@@ -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',
},
];