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',
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user