.. _sec-jsclientlib-languages: :mod:`OctoPrintClient.languages` -------------------------------- .. note:: All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.languages.list(opts) Retrieves a list of available language packs. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response .. js:function:: OctoPrintClient.languages.upload(file) Uploads a language pack. :param object or string file: The file to upload, see :js:func:`OctoPrint.upload` for more details :returns Promise: A `jQuery Promise `_ for the request's response .. js:function:: OctoPrintClient.languages.delete(locale, pack, opts) Deletes the language pack ``pack`` for the specified locale ``locale``. :param string locale: The locale for which to delete the language pack :param string pack: The identifier of the pack to delete :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response .. seealso:: :ref:`Languages API ` The documentation of the underlying languages API.