benbusby / farside

A smart redirecting gateway for various frontend services
https://farside.link
MIT License
771 stars 47 forks source link

Add Mozhi #175

Open toyboatcash opened 5 months ago

toyboatcash commented 5 months ago

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

idnovic commented 2 months ago

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

idnovic commented 2 months ago
        # ==============================================================
        # 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.