From 062d716fee661cc5c5d951e4a0e081224c5a6e93 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 15 Apr 2025 01:44:17 +0200 Subject: [PATCH] use langs locally --- src/README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/README.md b/src/README.md index 2cec2d6de..f1410ef13 100644 --- a/src/README.md +++ b/src/README.md @@ -9,8 +9,26 @@ _Hacktricks logos & motion design by_ [_@ppiernacho_](https://www.instagram.com/ ```bash # Download latest version of hacktricks git clone https://github.com/HackTricks-wiki/hacktricks +# Select the language you want to use +export LANG="master" +# "af" for Afrikaans +# "de" for German +# "el" for Greek +# "es" for Spanish +# "fr" for French +# "hi" for Hindi +# "it" for Italian +# "ja" for Japanese +# "ko" for Korean +# "pl" for Polish +# "pt" for Portuguese +# "sr" for Serbian +# "sw" for Swahili +# "tr" for Turkish +# "uk" for Ukrainian +# "zh" for Chinese # Run the docker container indicating the path to the hacktricks folder -docker run -d --rm -p 3337:3000 --name hacktricks -v $(pwd)/hacktricks:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "cd /app && git config --global --add safe.directory /app && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0" +docker run -d --rm --platform linux/amd64 -p 3337:3000 --name hacktricks -v $(pwd)/hacktricks:/app ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image bash -c "cd /app && git config --global --add safe.directory /app && git checkout $LANG && git pull && MDBOOK_PREPROCESSOR__HACKTRICKS__ENV=dev mdbook serve --hostname 0.0.0.0" ``` Your local copy of HackTricks will be **available at [http://localhost:3337](http://localhost:3337)** after <5 minutes (it needs to build the book, be patient).