#gettext #deepl assisted #i10n of #po files
$ msgget # copy msgid as msgstr to new file
script:
---
#!/usr/bin/bash
read msg
# curl the msg via deepl api | jq --raw the output
---
$msgfilter --keep-header -src.po ./script
# pay attention to encoding in *.po header
et voilà, basic, crude translation of thousands of lines in more than 30 languages
Afterthought: I deal with newlines via sed /\\n// , sometimes via #vim