Skip to content

Commit 4e0ebf1

Browse files
committed
use langs locally
1 parent 8b2c420 commit 4e0ebf1

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

src/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,28 @@ _Hacktricks logos & motion designed by_ [_@ppiernacho_](https://www.instagram.co
1111
```bash
1212
# Download latest version of hacktricks cloud
1313
git clone https://github.com/HackTricks-wiki/hacktricks-cloud
14+
15+
# Select the language you want to use
16+
export LANG="master" # Leave master for english
17+
# "af" for Afrikaans
18+
# "de" for German
19+
# "el" for Greek
20+
# "es" for Spanish
21+
# "fr" for French
22+
# "hi" for Hindi
23+
# "it" for Italian
24+
# "ja" for Japanese
25+
# "ko" for Korean
26+
# "pl" for Polish
27+
# "pt" for Portuguese
28+
# "sr" for Serbian
29+
# "sw" for Swahili
30+
# "tr" for Turkish
31+
# "uk" for Ukrainian
32+
# "zh" for Chinese
33+
1434
# Run the docker container indicating the path to the hacktricks-cloud folder
15-
docker run -d --rm -p 3377:3000 --name hacktricks_cloud -v $(pwd)/hacktricks-cloud:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "cd /app && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0"
35+
docker run -d --rm --platform linux/amd64 -p 3377:3000 --name hacktricks_cloud -v $(pwd)/hacktricks-cloud:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "cd /app && git checkout $LANG && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0"
1636
```
1737

1838
Your local copy of HackTricks Cloud will be **available at [http://localhost:3377](http://localhost:3377)** after a minute.

0 commit comments

Comments
 (0)