Skip to content

ResolvedLanguage

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/apps/api/src/project/language.util.ts

Language metadata for the public viewer's i18n (RTL layout + locale switcher).

Mirrors the doc generator's _resolve_language (atlorix tools) so a DocVersion.language code resolves to the same {code, base, name, dir} the docs were written for. dir drives the viewer's RTL/LTR layout; name (native) labels the locale switcher.

Codes are BCP-47-ish: a base language ("ar", "pt") optionally with a script or region subtag ("pt-BR", "zh-Hant"). Resolution is base-driven so any region variant of Arabic is still RTL and still labelled "العربية".

Properties

PropertyType
codestring
basestring
namestring
dir`'ltr'

Was this page helpful?

Download as PDF