Table of Contents

Class TranslationNotFoundEventArgs

Namespace
RentADeveloper.ResXLocalization
Assembly
ResXLocalization.Core.dll

Provides the details of a lookup that no resource file could satisfy, raised through TranslationNotFound. Subscribe to log missing translations during development. Normal .NET parent/neutral resource fallback runs first, so this event means the key was unresolved across the complete fallback chain; the lookup itself still returns the missing-translation sentinel (see MissingTranslationFormat).

public sealed class TranslationNotFoundEventArgs : EventArgs
Inheritance
TranslationNotFoundEventArgs
Inherited Members

Constructors

TranslationNotFoundEventArgs(string, CultureInfo, ResourceManager?)

Initializes a new instance of the TranslationNotFoundEventArgs class.

public TranslationNotFoundEventArgs(string key, CultureInfo culture, ResourceManager? resourceManager)

Parameters

key string

The resource key that could not be resolved.

culture CultureInfo

The culture the lookup ran against.

resourceManager ResourceManager

The single resource manager of a scoped or typed lookup, or null for a search-all lookup.

Properties

Culture

Gets the culture the lookup ran against.

public CultureInfo Culture { get; }

Property Value

CultureInfo

Key

Gets the resource key that could not be resolved.

public string Key { get; }

Property Value

string

ResourceManager

Gets the single resource manager of a scoped or typed lookup, or null when the miss came from a search-all lookup across every registered resource manager.

public ResourceManager? ResourceManager { get; }

Property Value

ResourceManager