Skip to content

Vizel API / core/src / resolveVizelFindReplaceLabels

Function: resolveVizelFindReplaceLabels()

ts
function resolveVizelFindReplaceLabels(partial): object;

Defined in: packages/core/src/i18n/utils.ts:11

Resolve FindReplace locale labels with English defaults.

Returns a complete labels object even when the caller supplies a partial locale or no locale at all. Framework components consume this helper to avoid hand-writing ?? "Find..." fallbacks inline.

Parameters

ParameterType
partial| { caseSensitive: string; closeAriaLabel: string; closeTitle: string; findNextAriaLabel: string; findNextTitle: string; findPlaceholder: string; findPreviousAriaLabel: string; findPreviousTitle: string; findTextAriaLabel: string; label: string; noResults: string; replaceAllAriaLabel: string; replaceAllTitle: string; replaceAriaLabel: string; replacePlaceholder: string; replaceTextAriaLabel: string; replaceTitle: string; } | undefined

Returns

caseSensitive

ts
caseSensitive: string;

closeAriaLabel

ts
closeAriaLabel: string;

closeTitle

ts
closeTitle: string;

findNextAriaLabel

ts
findNextAriaLabel: string;

findNextTitle

ts
findNextTitle: string;

findPlaceholder

ts
findPlaceholder: string;

findPreviousAriaLabel

ts
findPreviousAriaLabel: string;

findPreviousTitle

ts
findPreviousTitle: string;

findTextAriaLabel

ts
findTextAriaLabel: string;

label

ts
label: string;

Panel aria-label

noResults

ts
noResults: string;

replaceAllAriaLabel

ts
replaceAllAriaLabel: string;

replaceAllTitle

ts
replaceAllTitle: string;

replaceAriaLabel

ts
replaceAriaLabel: string;

replacePlaceholder

ts
replacePlaceholder: string;

replaceTextAriaLabel

ts
replaceTextAriaLabel: string;

replaceTitle

ts
replaceTitle: string;

Released under the MIT License.