3f9ea32279
This adds `pkgs.translatelocally-models.*` providing machine translation models which can be used with `pkgs.translatelocally`. `translatelocally-models.is-en-tiny` is marked as broken because its archive is missing.
14 lines
312 B
Bash
Executable file
14 lines
312 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p curl -p jq
|
|
|
|
set -eu -o pipefail
|
|
|
|
curl https://translatelocally.com/models.json \
|
|
| jq '.models | map(with_entries(select([.key] | inside([
|
|
"name",
|
|
"code",
|
|
"version",
|
|
"url",
|
|
"checksum"
|
|
]))))' \
|
|
> "$(dirname "$0")/models.json"
|