Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models

Syntax

Summary

Represents a language configuration for global navigation in the Mintlify documentation site.

Remarks

This configuration defines a language option that appears globally across all sections and pages, allowing users to switch between different language versions of the documentation.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Gets or sets a banner specific to this language.

Syntax

Property Value

Type: Mintlify.Core.Models.BannerConfig?

Remarks

Accepts the same options as the top-level banner field.

Default

Gets or sets whether this language is the default language for the documentation.

Syntax

Property Value

Type: bool?

Remarks

When true, this language will be selected by default when users first visit the documentation. Only one language should be marked as default.

Directory

Gets or sets the directory layout for this language.

Syntax

Property Value

Type: string?

Remarks

Valid values are none, accordion, and card. Gets or sets a footer specific to this language.

Syntax

Property Value

Type: Mintlify.Core.Models.FooterConfig?

Remarks

Accepts the same options as the top-level footer field.

Hidden

Gets or sets whether this language option is hidden by default.

Syntax

Property Value

Type: bool?

Remarks

When true, this language option will not be visible in the language selector unless specifically shown. This can be useful for languages that are in development or not ready for public access.

Href

Gets or sets the URL or path for this language version.

Syntax

Property Value

Type: string?

Remarks

Specifies where users should be directed when they select this language. Can be a relative path (e.g., “/es/”) or an absolute URL for a different domain (e.g., “https://es.example.com/”).

Language

Gets or sets the language code in ISO 639-1 format.

Syntax

Property Value

Type: string

Remarks

Specifies the language using a standard two-letter code such as “en” for English, “es” for Spanish, “fr” for French, etc. Extended codes like “zh-Hans” for Simplified Chinese or “fr-CA” for Canadian French are also supported. This is a required field. Gets or sets a navbar specific to this language.

Syntax

Property Value

Type: Mintlify.Core.Models.NavbarConfig?

Remarks

Accepts the same options as the top-level navbar field.

Thumbnail

Gets or sets thumbnail overrides for this language.

Syntax

Property Value

Type: Mintlify.Core.Models.NavThumbnailConfig?

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?