Skip to content

i18n.TypeAlias.GameLocale

github-actions[bot] edited this page Aug 26, 2026 · 66 revisions

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

Type Alias: GameLocale

GameLocale = "en" | "de" | "es" | "fr" | "pt" | "ru"

Defined in: src/i18n/locale.ts:29

A locale tag accepted by at least one localized game-name lookup.

Remarks

English (en) is complete because it is the canonical name already published by the Almanac. Every other locale is sparse and source-dependent. A lookup accepts any string rather than only this union so callers can pass their application locale directly: a regional tag such as de-DE falls back to de, while an unsupported tag or a missing translation returns null. A source may explicitly publish a localized value whose spelling equals the canonical English name. Lookups return that source value verbatim; they never generate an English fallback for a missing locale.

The catalogues carry English, French, German, Portuguese, Russian and Spanish and no other language. Several accepted sources publish more — Italian, Hungarian, Georgian and Simplified Chinese among them — and those values are deliberately not stored, so every one of those tags is an unsupported locale that returns null. The stored Portuguese is the Brazilian Portuguese every accepted source publishes under a bare pt tag; pt-PT therefore resolves to it like any other regional tag.

Example

import type { GameLocale } from '@elite-dangerous-almanac/core/i18n';

const locale: GameLocale = 'de';
locale; // -> 'de'

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
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