Represents the result of the localizeWithDetails function.

interface LocalizedDetailsResult {
    text?: string;
    result: "notFound" | "localized" | "fallback";
    requestedCultureId: string;
    actualCultureId?: string;
}

Properties

text?: string

The localized text. Undefined if the text was not found and there is no fallback.

result: "notFound" | "localized" | "fallback"

The result of the localization operation. Possible values are:

  • 'localized': The text was successfully localized.
  • 'fallback': The text returned is the fallback text.
  • 'notFound': The text was not found in any culture and there is no fallback.
requestedCultureId: string

The ID of the culture that was requested for localization.

actualCultureId?: string

The ID of the actual culture used for localization. This property is optional and may not be present in all cases.

Generated using TypeDoc v0.25.12