Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Thunderbird/cli/translation-cli/   (Thunderbird Email Client Version 5.6©)  Datei vom 22.9.2026 mit Größe 1 kB image not shown  

Quelle  README.md  Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: SQL {SQL[102] VDM[85] VHDL[68]} [Methode: maximale Elemente, drei Dimensionen]

# Translation CLI

This is a command line interface that will check the [weblate](https://hosted.weblate.org/projects/thunderbird/thunderbird-android/#languages) translation state for all languages and print out the ones that are above a certain threshold.

## Usage

To use this script you need to have a [weblate token](https://hosted.weblate.org/accounts/profile/#api). You can get it by logging in to weblate and going to your profile settings.

You can run the script with the following command:

```bash
./scripts/translation --token <weblate-token> [--threshold 70] [--log-level INFO]
```

It will print out the languages that are above the threshold. The default threshold is 70. You can change it by passing the `--threshold` argument.

The `--log-level` option controls the verbosity of the Weblate API client's logs. Supported values are: `NONE`, `INFO`, `HEADERS`, `BODY`, `ALL`. The default is `NONE`.

If you want a code example, you can pass the `--print-all` argument. It will print out example code for easier integration into the project.

```bash
./scripts/translation --token <weblate-token> --print-all
```

This output can be used to update:

- `resourceConfigurations` in `app-k9mail/build.gradle.kts` and `app-thunderbird/build.gradle.kts`
- `supported_languages` in `legacy/core/src/res/values/arrays_general_settings_values.xml`


[Dauer der Verarbeitung: 0.1 Sekunden, vorverarbeitet 2026-10-24]