mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
update references to scripts
This commit is contained in:
parent
c18a8d4855
commit
75869e30ab
2 changed files with 6 additions and 6 deletions
4
.github/workflows/publish-package.yml
vendored
4
.github/workflows/publish-package.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest flake8
|
pip install pytest flake8
|
||||||
pip install .
|
pip install .
|
||||||
python compile_locales.py
|
python scripts/compile_locales.py
|
||||||
|
|
||||||
- name: Check code style with flake8 (lint)
|
- name: Check code style with flake8 (lint)
|
||||||
run: |
|
run: |
|
||||||
|
@ -61,6 +61,6 @@ jobs:
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
python compile_locales.py
|
python scripts/compile_locales.py
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
|
@ -130,8 +130,8 @@ Then open a web browser to http://localhost:5000
|
||||||
|
|
||||||
### Run with Docker
|
### Run with Docker
|
||||||
|
|
||||||
Linux/MacOS: `./run.sh [args]`
|
Linux/MacOS: `./scripts/run.sh [args]`
|
||||||
Windows: `run.bat [args]`
|
Windows: `scripts/run.bat [args]`
|
||||||
|
|
||||||
Then open a web browser to http://localhost:5000
|
Then open a web browser to http://localhost:5000
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ If you're using docker:
|
||||||
|
|
||||||
Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`.
|
Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`.
|
||||||
|
|
||||||
Alternatively you can also run the `install_models.py` script.
|
Alternatively you can also run the `scripts/install_models.py` script.
|
||||||
|
|
||||||
## Run with WSGI and Gunicorn
|
## Run with WSGI and Gunicorn
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ First you need to collect data, for example from [Opus](http://opus.nlpl.eu/), t
|
||||||
|
|
||||||
## Localization
|
## Localization
|
||||||
|
|
||||||
The LibreTranslate Web UI is available in all the languages for which LibreTranslate can translate to. It can also (roughly) [translate itself!](https://github.com/LibreTranslate/LibreTranslate/blob/main/update_locales.py) Some languages might not appear in the UI since they haven't been reviewed by a human yet. You can enable all languages by turning on `--debug` mode.
|
The LibreTranslate Web UI is available in all the languages for which LibreTranslate can translate to. It can also (roughly) [translate itself!](https://github.com/LibreTranslate/LibreTranslate/blob/main/scripts/update_locales.py) Some languages might not appear in the UI since they haven't been reviewed by a human yet. You can enable all languages by turning on `--debug` mode.
|
||||||
|
|
||||||
To help improve or review the UI translations:
|
To help improve or review the UI translations:
|
||||||
- Go to https://hosted.weblate.org/projects/libretranslate/app/#translations. All changes are automatically pushed to this repository.
|
- Go to https://hosted.weblate.org/projects/libretranslate/app/#translations. All changes are automatically pushed to this repository.
|
||||||
|
|
Loading…
Reference in a new issue