---
title: "LanguageInfo | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias LanguageInfo

type LanguageInfo \= {  
    [code](#code): string | null;  
    [flag](#flag): string;  
    [geocoding](#geocoding): boolean;  
    [isMode](#ismode): boolean;  
    [latin](#latin): boolean;  
    [name](#name): string;  
}

-   Defined in [language.ts:1](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L1)

##### Index

### Properties

[code](#code) [flag](#flag) [geocoding](#geocoding) [isMode](#ismode) [latin](#latin) [name](#name)

## Properties

### code[](#code)

code: string | null

Two-letter ISO code, such as `"en"` for English language. Can be `null` if the language is a flag to be evaluated at runtime, as it is the case for some "modes".

-   Defined in [language.ts:7](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L7)

### flag[](#flag)

flag: string

The full OSM language flag, such as `"name:en"` for the English language. Can also be a non-OSM flag if the language needs to be evaluated at runtime, such as `"auto"`, as it is the case for some "modes".

-   Defined in [language.ts:14](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L14)

### geocoding[](#geocoding)

geocoding: boolean

Whether the language is compatible with the geocoding API

-   Defined in [language.ts:35](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L35)

### isMode[](#ismode)

isMode: boolean

Some language descriptions corresponds to "modes" rather than to actual languages. For instance the "visitor" mode consists in displaying bilingual labels.

-   Defined in [language.ts:30](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L30)

### latin[](#latin)

latin: boolean

Whether the language leverages only the latin charsets.

-   Defined in [language.ts:24](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L24)

### name[](#name)

name: string

English name of the language.

-   Defined in [language.ts:19](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L19)
