Skip to content

Vizel API / core/src / buildVizelFindReplaceSpecFromLocale

Function: buildVizelFindReplaceSpecFromLocale()

ts
function buildVizelFindReplaceSpecFromLocale(state, locale): VizelFindReplaceSpec;

Defined in: packages/core/src/builders/find-replace.ts:62

Convenience overload that resolves the noResults label from a full locale. Equivalent to calling buildVizelFindReplaceSpec(state, locale?.findReplace?.noResults ?? "No matches").

Parameters

ParameterType
state| VizelFindReplaceState | null
localeVizelLocale | undefined

Returns

VizelFindReplaceSpec

Released under the MIT License.