Open History to see the last commit
1import { mFallback, msg, type Msg } from "gt-i18n";
2import type { M } from "gt-i18n";
3
4import type { SearchMatchHintField } from "./paletteSearch.ts";
5
6const MATCH_HINT_LABELS: Readonly<Record<SearchMatchHintField, string | Msg>> = {
7 "pull-request": msg({ context: "abbreviation of pull request" })`PR`,
8 branch: msg("Branch"),
9 project: msg("Project"),
10 environment: msg("Environment"),
11 reference: msg("ID or link"),
12};
13
14/** @public */
15export function searchMatchHintLabel(field: SearchMatchHintField, resolve: M = mFallback): string {
16 return resolve(MATCH_HINT_LABELS[field]);
17}