Skip to content

i18n.Function.getSuitName

github-actions[bot] edited this page Sep 23, 2026 · 12 revisions

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

Function: getSuitName()

getSuitName(suit, locale): string | null

Defined in: src/i18n/suits.ts:53

Look up an Odyssey suit's source-backed display name for a locale.

Parameters

suit

string

Either the grade-independent family Suit.family carries, such as "utilitysuit", or one grade's Frontier symbol, such as "utilitysuit_class3" — the form a journal line writes. Matching ignores case and surrounding whitespace.

locale

string

A BCP 47 language or regional tag, such as "de" or "de-DE"; see GameLocale for how a tag is matched.

Returns

string | null

The localized suit name; the canonical Suit.name for any English tag; or null when the suit is unknown or the locale is not one of the six this catalogue stores.

Remarks

All six stored locales are complete for this dataset, so a supported locale always answers. The game names a suit per family rather than per grade, so every grade of one suit resolves to the same name. The name is the suit's own: the outfitting list prefixes it with the manufacturer — "Remlok Maverick Suit" — which names a shop listing rather than the suit, and is not stored. This lookup bundles no suit stats.

Throws

If suit is present and not a string, or locale is not a string. A nullish suit is a lookup miss and returns null.

Example

import { getSuitName } from '@elite-dangerous-almanac/core/i18n/suits';

getSuitName('utilitysuit', 'de-DE'); // -> 'Maverick-Anzug'
getSuitName('explorationsuit_class3', 'fr'); // -> 'Combinaison Artemis'
getSuitName('utilitysuit', 'it'); // -> null

TypeScript

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (28)
Type Aliases (6)
Variables (22)
Functions (57)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (18)
Type Aliases (9)
Variables (4)
Functions (14)
Subpath modules (2)
galaxy-map
Interfaces (1)
Variables (1)
Functions (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (23)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (86)
Subpath modules (8)

Clone this wiki locally