# ResolvedLanguage

**Kind:** Interface

**Source:** [`atloria-monorepo/apps/api/src/project/language.util.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/project/language.util.ts#L14)

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

| Property | Type |
|---|---|
| `code` | `string` |
| `base` | `string` |
| `name` | `string` |
| `dir` | `'ltr' | 'rtl'` |
