1- import React from "react" ;
2- // icons
3- import { Activity , Bell , CircleUser , KeyRound , LucideProps , Settings2 } from "lucide-react" ;
4-
51export const PROFILE_ACTION_LINKS : {
62 key : string ;
7- label : string ;
3+ i18n_label : string ;
84 href : string ;
95 highlight : ( pathname : string ) => boolean ;
10- Icon : React . FC < LucideProps > ;
116} [ ] = [
127 {
13- key : "profile.label " ,
14- label : "Profile " ,
8+ key : "profile" ,
9+ i18n_label : "profile.actions.profile " ,
1510 href : `/profile` ,
1611 highlight : ( pathname : string ) => pathname === "/profile/" ,
17- Icon : CircleUser ,
1812 } ,
1913 {
2014 key : "security" ,
21- label : "Security " ,
15+ i18n_label : "profile.actions.security " ,
2216 href : `/profile/security` ,
2317 highlight : ( pathname : string ) => pathname === "/profile/security/" ,
24- Icon : KeyRound ,
2518 } ,
2619 {
2720 key : "activity" ,
28- label : "Activity " ,
21+ i18n_label : "profile.actions.activity " ,
2922 href : `/profile/activity` ,
3023 highlight : ( pathname : string ) => pathname === "/profile/activity/" ,
31- Icon : Activity ,
3224 } ,
3325 {
3426 key : "appearance" ,
35- label : "Appearance " ,
27+ i18n_label : "profile.actions.appearance " ,
3628 href : `/profile/appearance` ,
3729 highlight : ( pathname : string ) => pathname . includes ( "/profile/appearance" ) ,
38- Icon : Settings2 ,
3930 } ,
4031 {
4132 key : "notifications" ,
42- label : "Notifications " ,
33+ i18n_label : "profile.actions.notifications " ,
4334 href : `/profile/notifications` ,
4435 highlight : ( pathname : string ) => pathname === "/profile/notifications/" ,
45- Icon : Bell ,
4636 } ,
4737] ;
4838
4939export const PROFILE_VIEWER_TAB = [
5040 {
5141 key : "summary" ,
5242 route : "" ,
53- label : "Summary " ,
43+ i18n_label : "profile.tabs.summary " ,
5444 selected : "/" ,
5545 } ,
5646] ;
@@ -59,24 +49,25 @@ export const PROFILE_ADMINS_TAB = [
5949 {
6050 key : "assigned" ,
6151 route : "assigned" ,
62- label : "Assigned " ,
52+ i18n_label : "profile.tabs.assigned " ,
6353 selected : "/assigned/" ,
6454 } ,
6555 {
56+ key : "created" ,
6657 route : "created" ,
67- label : "Created " ,
58+ i18n_label : "profile.tabs.created " ,
6859 selected : "/created/" ,
6960 } ,
7061 {
7162 key : "subscribed" ,
7263 route : "subscribed" ,
73- label : "Subscribed " ,
64+ i18n_label : "profile.tabs.subscribed " ,
7465 selected : "/subscribed/" ,
7566 } ,
7667 {
7768 key : "activity" ,
7869 route : "activity" ,
79- label : "Activity " ,
70+ i18n_label : "profile.tabs.activity " ,
8071 selected : "/activity/" ,
8172 } ,
8273] ;
0 commit comments