This is a folder with the supporting scripts written in Python 3, node, bash.
-
Run the following command in terminal to install python dependencies:
pip3 install -r requirements.txt
-
Make sure you have gettext utilities installed. https://www.gnu.org/software/gettext/
See locales/README.md for information about how to handle translations.
The <repo>/scripts/localization
script is, among other things, calling into fetch-relay-locations.py
and integrate-relay-locations.py
in this directory.
fetch-relay-locations.py
fetches the relay list and extracts all country and city names.intregrate-relay-locations.py
integrates the fetched relay locations into<repo>/gui/locales/relay-locations.pot
.
- Freeze dependencies:
pip3 freeze -r requirements.txt
and save the output into requirements.txt
.
- Hash them with
hashin
tool:
hashin --python 3.7 --verbose --update-all