> For the complete documentation index, see [llms.txt](https://painor.gitbook.io/gramjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://painor.gitbook.io/gramjs/working-with-localization-packs/langpack.getlanguages.md).

# langpack.getLanguages

Get information about all languages in a localization pack

## Example

{% tabs %}
{% tab title="Javascript" %}

```javascript
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result = await client.invoke(new Api.langpack.getLanguages({
        langPack: 'random string here',
        }));
    console.log(result); // prints the result
})();
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
import {Api, TelegramClient} from 'telegram';
import {StringSession} from 'telegram/sessions';

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result: Api.Vector<LangPackLanguage> = await client.invoke(new Api.langpack.getLanguages({
        langPack: 'random string here',
        }));
    console.log(result); // prints the result
})();
```

{% endtab %}
{% endtabs %}

## TL schema

```
---functions---
langpack.getLanguages#42c6978f lang_pack:string = Vector<LangPackLanguage>;
```

## Parameters

|      Name      | Type                                            | Description   |
| :------------: | ----------------------------------------------- | ------------- |
| **lang\_pack** | [string](https://core.telegram.org/type/string) | Language pack |

## Result

[Vector](https://core.telegram.org/type/Vector%20t)[\[LangPackLanguage\](https://core.telegram.org/type/LangPackLanguage)](https://app.gitbook.com/s/-MMkAn4QUh4dOGfc-vjY/working-with-localization-packs/\[LangPackLanguage]\(https://core.telegram.org/type/LangPackLanguage\))

## Possible errors

| Code | Type                | Description                           |
| :--: | ------------------- | ------------------------------------- |
|  400 | LANG\_PACK\_INVALID | The provided language pack is invalid |

## Can bots use this methd ?

### yes

## Related pages
