This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-07-09 08:22:20 +00:00
|
|
|
export const getNamespaceTitle = (n, $t) => {
|
|
|
|
if (n.id === -1) {
|
2021-07-19 09:18:22 +00:00
|
|
|
return $t('namespace.pseudo.sharedLists.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
|
|
|
if (n.id === -2) {
|
2021-07-19 09:18:22 +00:00
|
|
|
return $t('namespace.pseudo.favorites.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
|
|
|
if (n.id === -3) {
|
2021-07-19 09:18:22 +00:00
|
|
|
return $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
|
|
|
}
|