Improve some translations (#581)
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/581 Reviewed-by: konrad <konrad@kola-entertainments.de> Co-authored-by: andreymal <andriyano-31@mail.ru> Co-committed-by: andreymal <andriyano-31@mail.ru>
This commit is contained in:
6
src/helpers/getListTitle.js
Normal file
6
src/helpers/getListTitle.js
Normal file
@ -0,0 +1,6 @@
|
||||
export const getListTitle = (l, $t) => {
|
||||
if (l.id === -1) {
|
||||
return $t('list.pseudo.favorites.title');
|
||||
}
|
||||
return l.title;
|
||||
}
|
12
src/helpers/getNamespaceTitle.js
Normal file
12
src/helpers/getNamespaceTitle.js
Normal file
@ -0,0 +1,12 @@
|
||||
export const getNamespaceTitle = (n, $t) => {
|
||||
if (n.id === -1) {
|
||||
return $t('namespace.pseudo.sharedLists.title');
|
||||
}
|
||||
if (n.id === -2) {
|
||||
return $t('namespace.pseudo.favorites.title');
|
||||
}
|
||||
if (n.id === -3) {
|
||||
return $t('namespace.pseudo.savedFilters.title');
|
||||
}
|
||||
return n.title;
|
||||
}
|
Reference in New Issue
Block a user