2021-08-20 15:38:16 +02:00
|
|
|
import {i18n} from '@/i18n'
|
2022-09-06 11:36:01 +02:00
|
|
|
import type {INamespace} from '@/modelTypes/INamespace'
|
2021-08-20 15:38:16 +02:00
|
|
|
|
2022-07-21 00:42:36 +02:00
|
|
|
export const getNamespaceTitle = (n: INamespace) => {
|
2021-07-09 10:22:20 +02:00
|
|
|
if (n.id === -1) {
|
2021-08-20 15:38:16 +02:00
|
|
|
return i18n.global.t('namespace.pseudo.sharedLists.title')
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|
|
|
|
if (n.id === -2) {
|
2021-08-20 15:38:16 +02:00
|
|
|
return i18n.global.t('namespace.pseudo.favorites.title')
|
2021-07-09 10:22:20 +02:00
|
|
|
}
|
|
|
|
if (n.id === -3) {
|
2021-08-20 15:38:16 +02:00
|
|
|
return i18n.global.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
|
|
|
}
|