Skip to content
github-actions[bot] edited this page Aug 23, 2026 · 7 revisions

@elite-dangerous-almanac/core / i18n

i18n

Sparse, source-backed localized display names for Elite Dangerous outfitting and engineering catalogues.

Each lookup takes the same Frontier symbol or fdname as its owning catalogue and a BCP 47 locale. English is complete and exactly matches the owning record's name. Other locales are intentionally sparse: the function returns null when its pinned sources carry no translation, leaving the application in control of fallback policy. A source-backed localized spelling can be identical to English; the lookup returns explicit source values verbatim but never manufactures an English fallback. The catalogues carry English, French, German, Portuguese, Russian and Spanish only, each stored under a bare language tag: a regional or script subtag is dropped (de-DEde), and any other language is an unsupported locale.

Each dataset lives in a separate runtime module. Import from this barrel for convenience or from the corresponding i18n/* subpath for an explicit bundle boundary.

Structured diagnostic helpers expose their current English fallback only for English locales and return null otherwise, so a UI never mistakes English prose for a requested translation. Stable codes and params remain available for applications that supply their own message catalogues.

Example

import {
  getBlueprintName,
  getMaterialName,
  getModuleName,
} from '@elite-dangerous-almanac/core/i18n';

getModuleName('Int_Hyperdrive_Size6_Class5', 'de'); // -> 'Frameshiftantrieb'
getBlueprintName('FSD_LongRange', 'de-DE'); // -> 'Erhöhte FSA-Reichweite'
getMaterialName('GridResistors', 'de'); // -> 'Gitterwiderstände'

Interfaces

Type Aliases

Functions

API

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 (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
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 (85)
Subpath modules (8)

Clone this wiki locally