MCPcopy
hub / github.com/autobrr/qui / getTranslatedHardlinkScopes

Function getTranslatedHardlinkScopes

web/src/components/query-builder/constants.ts:465–470  ·  view source on GitHub ↗
(t: TFunction)

Source from the content-addressed store, hash-verified

463
464/** Get translated hardlink scope values */
465export 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 */
473export function getTranslatedDeleteModes(t: TFunction): { value: string; label: string }[] {

Callers 1

LeafConditionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected