feat: translate inbox project title
This commit is contained in:
parent
638d187a24
commit
f2ca2d850d
|
@ -36,9 +36,9 @@
|
||||||
class="list-menu-link"
|
class="list-menu-link"
|
||||||
:class="{'router-link-exact-active': currentProject.id === p.id}"
|
:class="{'router-link-exact-active': currentProject.id === p.id}"
|
||||||
>
|
>
|
||||||
<span class="icon menu-item-icon handle">
|
<span class="icon menu-item-icon handle">
|
||||||
<icon icon="grip-lines"/>
|
<icon icon="grip-lines"/>
|
||||||
</span>
|
</span>
|
||||||
<ColorBubble
|
<ColorBubble
|
||||||
v-if="p.hexColor !== ''"
|
v-if="p.hexColor !== ''"
|
||||||
:color="p.hexColor"
|
:color="p.hexColor"
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
import {i18n} from '@/i18n'
|
import {i18n} from '@/i18n'
|
||||||
import type {IProject} from '@/modelTypes/IProject'
|
import type {IProject} from '@/modelTypes/IProject'
|
||||||
|
|
||||||
export function getProjectTitle(l: IProject) {
|
export function getProjectTitle(p: IProject) {
|
||||||
if (l.id === -1) {
|
if (p.id === -1) {
|
||||||
return i18n.global.t('project.pseudo.favorites.title')
|
return i18n.global.t('project.pseudo.favorites.title')
|
||||||
}
|
}
|
||||||
return l.title
|
|
||||||
|
if (p.title === 'Inbox') {
|
||||||
|
return i18n.global.t('project.inboxTitle')
|
||||||
|
}
|
||||||
|
|
||||||
|
return p.title
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,6 +175,7 @@
|
||||||
"searchSelect": "Click or press enter to select this project",
|
"searchSelect": "Click or press enter to select this project",
|
||||||
"shared": "Shared Projects",
|
"shared": "Shared Projects",
|
||||||
"noDescriptionAvailable": "No project description is available.",
|
"noDescriptionAvailable": "No project description is available.",
|
||||||
|
"inboxTitle": "Inbox",
|
||||||
"create": {
|
"create": {
|
||||||
"header": "New project",
|
"header": "New project",
|
||||||
"titlePlaceholder": "The project's title goes here…",
|
"titlePlaceholder": "The project's title goes here…",
|
||||||
|
|
Reference in New Issue
Block a user