feat(localization): update tab labels to include finance
- Added the "finance" tab label to the project-view constants, ensuring it is available for localization. - Updated the tab label retrieval function and the tab label update function to support the new finance key, enhancing the user interface for finance-related features.
This commit is contained in:
@@ -44,6 +44,7 @@ const getTabLabel = (key: string): string => {
|
|||||||
files: 'Files',
|
files: 'Files',
|
||||||
members: 'Members',
|
members: 'Members',
|
||||||
updates: 'Updates',
|
updates: 'Updates',
|
||||||
|
finance: 'Finance',
|
||||||
};
|
};
|
||||||
return fallbacks[key] || key;
|
return fallbacks[key] || key;
|
||||||
}
|
}
|
||||||
@@ -57,6 +58,7 @@ const getTabLabel = (key: string): string => {
|
|||||||
files: 'Files',
|
files: 'Files',
|
||||||
members: 'Members',
|
members: 'Members',
|
||||||
updates: 'Updates',
|
updates: 'Updates',
|
||||||
|
finance: 'Finance',
|
||||||
};
|
};
|
||||||
return fallbacks[key] || key;
|
return fallbacks[key] || key;
|
||||||
}
|
}
|
||||||
@@ -153,6 +155,9 @@ export const updateTabLabels = () => {
|
|||||||
case 'updates':
|
case 'updates':
|
||||||
item.label = getTabLabel('updates');
|
item.label = getTabLabel('updates');
|
||||||
break;
|
break;
|
||||||
|
case 'finance':
|
||||||
|
item.label = getTabLabel('finance');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user