Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

WithMissingKeyHandler

func WithMissingKeyHandler(handler: (string) -> ()) -> Localizer

Declaring type: LocalizerDiagnostics
Module: Neo.Localization
Assembly: Neo.Localization.Abstractions.dll

Extension from LocalizerDiagnostics.WithMissingKeyHandler

Returns a wrapper that calls handler once for each missing indexer lookup, then returns the key. Find stays quiet. Empty translations do not call handler. The caller owns throttling and locale context. The handler runs synchronously and should not reenter this wrapper; handler faults propagate.

Parameters

Name Type Description
self Localizer
handler Function

Return value

Localizer