langpack.getLanguages
Get information about all languages in a localization pack
func (c *Client) LangpackGetLanguages(ctx context.Context, langpack string) ([]LangPackLanguage, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.LangpackGetLanguages(ctx, langpack)
if err != nil {
return err
}
_ = res // []LangPackLanguage
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
LangPack | string | yes | Platform identifier (i.e. android, tdesktop, etc). |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | LANG_PACK_INVALID | The provided language pack is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
langpack.getLanguages#42c6978f