2021-08-20 13:38:16 +00:00
|
|
|
import {i18n} from '@/i18n'
|
|
|
|
|
|
|
|
export const getNamespaceTitle = (n) => {
|
2021-07-09 08:22:20 +00:00
|
|
|
if (n.id === -1) {
|
2021-08-20 13:38:16 +00:00
|
|
|
return i18n.global.t('namespace.pseudo.sharedLists.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
|
|
|
if (n.id === -2) {
|
2021-08-20 13:38:16 +00:00
|
|
|
return i18n.global.t('namespace.pseudo.favorites.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
|
|
|
if (n.id === -3) {
|
2021-08-20 13:38:16 +00:00
|
|
|
return i18n.global.t('namespace.pseudo.savedFilters.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
2021-07-19 09:18:22 +00:00
|
|
|
return n.title
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|