refactor(Library): add translation to sort selectable

This commit is contained in:
Tim 2023-04-12 13:46:08 +02:00
parent b41cc418c5
commit 02fceea357

View file

@ -24,7 +24,7 @@ const mapSelectableInputs = (library, t) => {
options: library.selectable.sorts
.map(({ sort, deepLinks }) => ({
value: deepLinks.library,
label: translateOption(sort)
label: translateOption(sort, 'SORT_')
})),
selected: library.selectable.sorts
.filter(({ selected }) => selected)