benbusby/farside

Add Mozhi

toyboatcash opened this issue · 2 comments

Mozhi is an alternative-frontend for many translation engines. https://codeberg.org/aryak/mozhi#instances

I would like to request this too.
Mozhi is a really nice frontend.

        # ==============================================================
        # Mozhi update
        # ==============================================================
        curl -s https://codeberg.org/aryak/mozhi/raw/branch/master/instances.json | \
          jq '[.[] | .link]' > mozhi-tmp.json
        jq --slurpfile mozhi mozhi-tmp.json \
          '(.[] | select(.type == "mozhi") )
          .instances |= $mozhi[0]' services-full.json > services-tmp.json

          apply_update

Untested but this should work.