Class LocalizedMessage
An error message in one language, safe to show users. Produced by IErrorLocalizer and carried on LocalizedMessage.
Implements
Inherited Members
Namespace: ZhEaIsNsAaBn.Utilities
Assembly: ZhEaIsNsAaBn.LayerResponse.dll
Syntax
public sealed record LocalizedMessage : IEquatable<LocalizedMessage>
Constructors
LocalizedMessage(string, string)
An error message in one language, safe to show users. Produced by IErrorLocalizer and carried on LocalizedMessage.
Declaration
public LocalizedMessage(string Locale, string Message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Locale | The language the message is really in (e.g. |
| string | Message | The message, placeholders already filled. |
Properties
Locale
The language the message is really in (e.g. ar, en) — after fallback, not the one requested.
Declaration
public string Locale { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Message
The message, placeholders already filled.
Declaration
public string Message { get; init; }
Property Value
| Type | Description |
|---|---|
| string |