2021-07-09 10:22:20 +02:00
|
|
|
export const getNamespaceTitle = (n, $t) => {
|
|
|
|
if (n.id === -1) {
|
2021-07-19 11:18:22 +02:00
|
|
|
return $t('namespace.pseudo.sharedLists.title')
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|
|
|
|
if (n.id === -2) {
|
2021-07-19 11:18:22 +02:00
|
|
|
return $t('namespace.pseudo.favorites.title')
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|
|
|
|
if (n.id === -3) {
|
2021-07-19 11:18:22 +02:00
|
|
|
return $t('namespace.pseudo.savedFilters.title')
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|
2021-07-19 11:18:22 +02:00
|
|
|
return n.title
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|