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:
chamikaJ
2025-07-24 16:05:23 +05:30
parent 3a6af8bd07
commit 22d78222d3

View File

@@ -44,6 +44,7 @@ const getTabLabel = (key: string): string => {
files: 'Files',
members: 'Members',
updates: 'Updates',
finance: 'Finance',
};
return fallbacks[key] || key;
}
@@ -57,6 +58,7 @@ const getTabLabel = (key: string): string => {
files: 'Files',
members: 'Members',
updates: 'Updates',
finance: 'Finance',
};
return fallbacks[key] || key;
}
@@ -153,6 +155,9 @@ export const updateTabLabels = () => {
case 'updates':
item.label = getTabLabel('updates');
break;
case 'finance':
item.label = getTabLabel('finance');
break;
}
});
} catch (error) {