Klient Weblate

Të reja në versionin 2.7: There has been full wlc utility support ever since Weblate 2.7. If you are using an older version some incompatibilities with the API might occur.


The Weblate Client is shipped separately and includes the Python module. To use the commands below, you need to install wlc:

pip3 install wlc

Përdorim Docker-i

The Weblate Client is also available as a Docker image.

The image is published on Docker Hub: https://hub.docker.com/r/weblate/wlc


docker pull weblate/wlc

The Docker container uses Weblate’s default settings and connects to the API deployed in localhost. The API URL and API_KEY can be configured through the arguments accepted by Weblate.

The command to launch the container uses the following syntax:

docker run --rm weblate/wlc [WLC_ARGS]


docker run --rm weblate/wlc --url https://hosted.weblate.org/api/ list-projects

You might want to pass your Kartela Formësimi to the Docker container, the easiest approach is to add your current directory as /home/weblate volume:

docker run --volume $PWD:/home/weblate --rm weblate/wlc show

Si t’ia fillohet

The wlc configuration is stored in ~/.config/weblate (see Kartela Formësimi for other locations), please create it to match your environment:

url = https://hosted.weblate.org/api/

https://hosted.weblate.org/api/ = APIKEY

You can then invoke commands on the default server:

wlc ls
wlc commit sandbox/hello-world

Shihni edhe

Kartela Formësimi


wlc [arguments] <command> [options]

Commands actually indicate which operation should be performed.


Weblate Client is a Python library and command-line utility to manage Weblate remotely using Weblate’s REST API. The command-line utility can be invoked as wlc and is built-in on wlc.


The program accepts the following arguments which define output format or which Weblate instance to use. These must be entered before any command.

--format {csv,json,text,html}

Përcaktoni formatin e përfundimeve.

--url URL

Specify the API URL. Overrides any value found in the configuration file, see Kartela Formësimi. The URL should end with /api/, for example https://hosted.weblate.org/api/.

--key KEY

Specify the API user key to use. Overrides any value found in the configuration file, see Kartela Formësimi. You can find your key in your profile on Weblate.

--config PATH

Overrides the configuration file path, see Kartela Formësimi.

--config-section SECTION

Overrides configuration file section in use, see Kartela Formësimi.


Janë gati urdhrat vijues:


Shtyp versionin e tanishëm.


Paraqet gjuhët e përdorura në Weblate.


Paraqet projekte në Weblate.


Paraqet përbërës në Weblate.


Paraqet përkthime në Weblate.


Shows Weblate object (translation, component or project).


Lists Weblate object (translation, component or project).


Commits changes made in a Weblate object (translation, component or project).


Pulls remote repository changes into Weblate object (translation, component or project).


Pushes Weblate object changes into remote repository (translation, component or project).


Të reja në versionin 0.7: Supported since wlc 0.7.

Resets changes in Weblate object to match remote repository (translation, component or project).


Të reja në versionin 0.9: Supported since wlc 0.9.

Removes any untracked changes in a Weblate object to match the remote repository (translation, component or project).


Displays repository status for a given Weblate object (translation, component or project).


Displays detailed statistics for a given Weblate object (translation, component or project).


Të reja në versionin 0.5: Supported since wlc 0.5.

Shfaq gjendje kyçjeje.


Të reja në versionin 0.5: Supported since wlc 0.5.

Locks component from further translation in Weblate.


Të reja në versionin 0.5: Supported since wlc 0.5.

Bën shkyçjen e përkthimit të përbërësit Weblate.


Të reja në versionin 0.7: Supported since wlc 0.7 and Weblate 2.10.

Shfaq ndryshime për një objekt të dhënë.


Të reja në versionin 0.7: Supported since wlc 0.7.

Shkarkon një kartelë përkthimi.


Converts file format, if unspecified no conversion happens on the server and the file is downloaded as is to the repository.


Specifies file to save output in, if left unspecified it is printed to stdout.


Të reja në versionin 0.9: Supported since wlc 0.9.

Ngarkon një kartelë përkthimi.


Mbishkruaj përkthime ekzistuese gjatë ngarkimit.


File from which content is read, if left unspecified it is read from stdin.


You can get more detailed information on invoking individual commands by passing --help, for example: wlc ls --help.

Kartela Formësimi

.weblate, .weblate.ini, weblate.ini

Ndryshuar në versionin 1.6: The files with .ini extension are accepted as well.

Per project configuration file


Të reja në versionin 1.6.

Kartelë formësimi përdoruesi në Windows.


Kartelë formësimi përdoruesi


Kartelë formësimi për mbarë sistemin

The program follows the XDG specification, so you can adjust placement of config files by environment variables XDG_CONFIG_HOME or XDG_CONFIG_DIRS. On Windows APPDATA directory is preferred location for the configuration file.

Following settings can be configured in the [weblate] section (you can customize this by --config-section):


KYÇ API për hyrje në Weblate.


API server URL, defaults to


Path to the default translation - component or project.

Kartela e formësimit, është një kartelë INI, për shembull:

url = https://hosted.weblate.org/api/
key = APIKEY
translation = weblate/application

Additionally API keys can be stored in the [keys] section:

https://hosted.weblate.org/api/ = APIKEY

This allows you to store keys in your personal settings, while using the .weblate configuration in the VCS repository so that wlc knows which server it should talk to.


Shtyp të dhëna versioni aktual të programit:

$ wlc version
version: 0.1

Paraqit krejt projektet:

$ wlc list-projects
name: Hello
slug: hello
url: http://example.com/api/projects/hello/
web: https://weblate.org/
web_url: http://example.com/projects/hello/

You can also designate what project wlc should work on:

$ cat .weblate
url = https://hosted.weblate.org/api/
translation = weblate/application

$ wlc show
branch: main
file_format: po
source_language: en
filemask: weblate/locale/*/LC_MESSAGES/django.po
git_export: https://hosted.weblate.org/git/weblate/application/
license: GPL-3.0+
license_url: https://spdx.org/licenses/GPL-3.0+
name: Application
new_base: weblate/locale/django.pot
project: weblate
repo: git://github.com/WeblateOrg/weblate.git
slug: application
url: https://hosted.weblate.org/api/components/weblate/application/
vcs: git
web_url: https://hosted.weblate.org/projects/weblate/application/

With this setup it is easy to commit pending changes in the current project:

$ wlc commit