This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-20 13:38:16 +00:00
|
|
|
import {i18n} from '@/i18n'
|
2022-11-13 21:04:57 +00:00
|
|
|
import type {IProject} from '@/modelTypes/IProject'
|
2021-08-20 13:38:16 +00:00
|
|
|
|
2023-03-28 13:42:02 +00:00
|
|
|
export function getProjectTitle(project: IProject) {
|
|
|
|
if (project.id === -1) {
|
2022-11-13 21:04:57 +00:00
|
|
|
return i18n.global.t('project.pseudo.favorites.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
2023-03-28 16:21:12 +00:00
|
|
|
|
2023-03-28 13:42:02 +00:00
|
|
|
if (project.title === 'Inbox') {
|
2023-03-27 09:08:25 +00:00
|
|
|
return i18n.global.t('project.inboxTitle')
|
|
|
|
}
|
2023-03-28 16:21:12 +00:00
|
|
|
|
2023-03-28 13:42:02 +00:00
|
|
|
return project.title
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|