2021-08-20 13:38:16 +00:00
|
|
|
import {i18n} from '@/i18n'
|
2022-09-06 09:36:01 +00:00
|
|
|
import type {IList} from '@/modelTypes/IList'
|
2021-08-20 13:38:16 +00:00
|
|
|
|
2022-07-20 22:42:36 +00:00
|
|
|
export function getListTitle(l: IList) {
|
2021-07-09 08:22:20 +00:00
|
|
|
if (l.id === -1) {
|
2021-08-20 13:38:16 +00:00
|
|
|
return i18n.global.t('list.pseudo.favorites.title')
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|
2021-07-19 09:18:22 +00:00
|
|
|
return l.title
|
2021-07-09 08:22:20 +00:00
|
|
|
}
|