OctoPrint.languages

Note

All methods here require that the used API token or a the existing browser session has admin rights.

OctoPrint.languages.list(opts)

Retrieves a list of available language packs.

Arguments:
  • opts (object) – Additional options for the request
Returns Promise:
 

A jQuery Promise for the request’s response

OctoPrint.languages.upload(file)

Uploads a language pack.

Arguments:
Returns Promise:
 

A jQuery Promise for the request’s response

OctoPrint.languages.delete(locale, pack, opts)

Deletes the language pack pack for the specified locale locale.

Arguments:
  • locale (string) – The locale for which to delete the language pack
  • pack (string) – The identifier of the pack to delete
  • opts (object) – Additional options for the request
Returns Promise:
 

A jQuery Promise for the request’s response

See also

Languages API
The documentation of the underlying languages API.