# PublishedLanguage

**Kind:** Interface

**Source:** [`atloria-monorepo/apps/web/src/app/p/[slugId]/components/LanguageContext.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/app/p/[slugId]/components/LanguageContext.tsx#L19)

Public-viewer i18n. Each published DocVersion is written in a single
language; the API exposes the distinct languages (`/public/p/:slug/languages`)
and the viewer applies `dir` (RTL/LTR) + renders a locale switcher when more
than one language exists. Doc slugs are English/ASCII and shared across
languages, so switching keeps the reader on the same document.

## Properties

| Property | Type |
|---|---|
| `code` | `string` |
| `name` | `string` |
| `dir` | `'ltr' | 'rtl'` |
| `versionNumber` | `number` |
| `documentCount` | `number` |
| `isDefault` | `boolean` |
| `coveragePct` | `number` |
| `overlay` | `boolean` |
