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:¶
file (
object or string()
) – The file to upload, seeOctoPrint.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 packpack (
string()
) – The identifier of the pack to deleteopts (
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.