feat: translate inbox project title

This commit is contained in:
kolaente 2023-03-27 11:08:25 +02:00
parent cff26b1ccc
commit b937a39b21
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 12 additions and 6 deletions

View File

@ -1,9 +1,14 @@
import {i18n} from '@/i18n'
import type {IProject} from '@/modelTypes/IProject'
export function getProjectTitle(l: IProject) {
if (l.id === -1) {
export function getProjectTitle(p: IProject) {
if (p.id === -1) {
return i18n.global.t('project.pseudo.favorites.title')
}
return l.title
if (p.title === 'Inbox') {
return i18n.global.t('project.inboxTitle')
}
return p.title
}

View File

@ -175,6 +175,7 @@
"searchSelect": "Click or press enter to select this project",
"shared": "Shared Projects",
"noDescriptionAvailable": "No project description is available.",
"inboxTitle": "Inbox",
"create": {
"header": "New project",
"titlePlaceholder": "The project's title goes here…",