Skip to main content

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

NameTypeRequiredDescription
LangPackstringyesPlatform identifier (i.e. android, tdesktop, etc).

Returns

[]LangPackLanguage

Possible errors

CodeTypeDescription
400LANG_PACK_INVALIDThe provided language pack is invalid.

References