2021-08-20 15:38:16 +02:00
|
|
|
import {i18n} from '@/i18n'
|
2022-02-13 18:11:26 +01:00
|
|
|
import NamespaceModel from '@/models/namespace'
|
2021-08-20 15:38:16 +02:00
|
|
|
|
2022-02-13 18:11:26 +01:00
|
|
|
export const getNamespaceTitle = (n: NamespaceModel) => {
|
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
|
|
|
}
|