fix: Remove translated keys from locale files (#4748)

This commit is contained in:
Pranav Raj S
2022-05-25 17:06:31 +05:30
committed by GitHub
parent 7434b60f71
commit 1215f37dda
43 changed files with 219 additions and 1138 deletions

View File

@@ -235,11 +235,16 @@ export default {
return {};
},
assigneeTabItems() {
return this.$t('CHAT_LIST.ASSIGNEE_TYPE_TABS').map(item => {
const count = this.conversationStats[item.COUNT_KEY] || 0;
const ASSIGNEE_TYPE_TAB_KEYS = {
me: 'mineCount',
unassigned: 'unAssignedCount',
all: 'allCount',
};
return Object.keys(ASSIGNEE_TYPE_TAB_KEYS).map(key => {
const count = this.conversationStats[ASSIGNEE_TYPE_TAB_KEYS[key]] || 0;
return {
key: item.KEY,
name: item.NAME,
key,
name: this.$t(`CHAT_LIST.ASSIGNEE_TYPE_TABS.${key}`),
count,
};
});