LibreTranslate / LibreTranslate

Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
https://libretranslate.com
GNU Affero General Public License v3.0
9.39k stars 854 forks source link

Front-end interface is not 100% self-hosted #72

Closed ghost closed 3 years ago

ghost commented 3 years ago

As includes remote dependencies, for example:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/prism.min.js"></script>
pierotofy commented 3 years ago

Pass the --offline flag.

ghost commented 3 years ago

Thanks for answer, but I have following message on libretranslate --offline

libretranslate: error: unrecognized arguments: --offline

ghost commented 3 years ago

I've installed LibreTranslate using pip3. So do I need to provide some flags on installation to enable that flag / local libraries?

pierotofy commented 3 years ago

Ah, it looks like the PyPI package hasn't been updated in a while.

It should be being updated and published as we speak. So just run pip3 install -U libretranslate then try again?

https://github.com/uav4geo/LibreTranslate/actions/runs/710754627

ghost commented 3 years ago

Yes, now it works. Thank you!