i18n.Function.getLoadoutEditErrorMessage - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / i18n / getLoadoutEditErrorMessage

Function: getLoadoutEditErrorMessage()

getLoadoutEditErrorMessage(error, locale): string | null

Defined in: src/i18n/diagnostics.ts:68

Resolve a refused loadout edit's fallback message.

Parameters

error

LoadoutEditError

A structured LoadoutEditError thrown by a loadout edit.

locale

string

A BCP 47 locale.

Returns

string | null

The error's English message for an English locale, otherwise null.

Throws

If error is not an object with a string message, or locale is not a string.

⚠️ **GitHub.com Fallback** ⚠️