Skip to content

i18n.Function.getPersonalMountName

github-actions[bot] edited this page Sep 20, 2026 · 11 revisions

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

Function: getPersonalMountName()

getPersonalMountName(mount, locale): string | null

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

Resolve a suit weapon mount's display name for a locale.

Parameters

mount

PersonalMount

A mount from Suit.mounts.

locale

string

A BCP 47 locale. The mount-label source supplies English only.

Returns

string | null

The mount's English display name for an English locale, otherwise null. null too when the mount carries a key this library does not name.

Throws

If mount is not an object or locale is not a string.

Remarks

The label reads the Frontier journal SlotName the mount carries, so it distinguishes a suit's primary mounts from each other. A consumer needs no table of its own.

No locale but English answers, although the game itself publishes all six.

Example

import { getSuitByFamily } from '@elite-dangerous-almanac/core/equipment/suits';
import { getPersonalMountName } from '@elite-dangerous-almanac/core/i18n/suits';

const suit = getSuitByFamily('tacticalsuit')!;
getPersonalMountName(suit.mounts[1]!, 'en-GB'); // -> 'Primary Weapon 2'
getPersonalMountName(suit.mounts[2]!, 'de'); // -> 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