OctoPrintClient.languages
¶
Note
All methods here require that the used API token or the existing browser session has admin rights.
-
OctoPrintClient.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
-
OctoPrintClient.languages.
upload
(file)¶ Uploads a language pack.
- Arguments
or string file (object) – The file to upload, see
OctoPrint.upload()
for more details
- Returns Promise
A jQuery Promise for the request’s response
-
OctoPrintClient.languages.
delete
(locale, pack, opts)¶ Deletes the language pack
pack
for the specified localelocale
.- 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.