summaryrefslogtreecommitdiffhomepage
path: root/desktop/packages/mullvad-vpn/scripts/README.md
blob: a4607c322732569e37ef5fd3acc47a2382012e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
This is a folder with the supporting scripts written in Python 3, node, bash.


## Maps and location translations

### Dependency installation notes

1. Run the following command in terminal to install python dependencies:
   `pip3 install -r requirements.txt`

2. Make sure you have gettext utilities installed.
   https://www.gnu.org/software/gettext/


### Update translations

See [locales/README.md](../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
`../locales/relay-locations.pot`.

### Locking Python dependencies

1. Freeze dependencies:

```
pip3 freeze -r requirements.txt
```

and save the output into `requirements.txt`.


2. Hash them with `hashin` tool:

```
hashin --python 3.7 --verbose --update-all
```