(t: TFunction)
| 463 | |
| 464 | /** Get translated hardlink scope values */ |
| 465 | export function getTranslatedHardlinkScopes(t: TFunction): { value: string; label: string }[] { |
| 466 | return HARDLINK_SCOPE_VALUES.map((scope) => ({ |
| 467 | value: scope.value, |
| 468 | label: t(`queryBuilder.hardlinkScopes.${scope.value}`, { defaultValue: scope.label }), |
| 469 | })); |
| 470 | } |
| 471 | |
| 472 | /** Get translated delete modes */ |
| 473 | export function getTranslatedDeleteModes(t: TFunction): { value: string; label: string }[] { |