diff --git a/ProtonMail.md b/ProtonMail.md index c80d1c8..cb9e4f7 100644 --- a/ProtonMail.md +++ b/ProtonMail.md @@ -25,14 +25,25 @@ sudo apt -y install git build-essential ``` volta install node@18 ``` -7. Install yarn package manager and ttag-cli translation converter, info from https://github.com/ProtonMail/WebClients/issues/281 + +7. Install yarn package manager, info from https://github.com/ProtonMail/WebClients/issues/281 ``` -npm -g install yarn ttag-cli +npm -g install yarn ``` -8. At https://crowdin.com/project/protonmail/fi Click: 1 Mail / Proton Mail Web Application.Pot / [...] / Download. It downloads `webapp-fi.po` file, save it to `~/repos/`, convert it to JSON: +8. At https://crowdin.com/project/protonmail/fi Click: 1 Mail / Proton Mail Web Application.xcliff / [...] / Download. It downloads `webapp-fi.xcliff` file, save it to `~/repos/`, convert it to JSON with newest translation converter https://github.com/ProtonMail/WebClients/issues/285#issuecomment-1422801160 ``` -npx ttag po2json webapp-fi.po --format=compact -p > fi_FI.json +git clone https://github.com/dhoko/xliff-to-JSON-ttag + +cd xliff-to-JSON-ttag + +sudo apt -y install python3-pip + +pip3 install pip --user --upgrade + +pip3 install -r requirements.txt --user + +python3 convert.py --input ../webapp.xliff --output ../fi_FI.json --locale fi_FI ``` 9. Clone ProtonMail WebClients @@ -75,3 +86,18 @@ yarn workspace proton-mail start - Verification app at `WebClients/applications/verify` - Some variable `const ignoreHumanVerification` at `WebClients/packages/shared/lib/api/helpers/withApiHandlers.js` but changing it does not work + +*** + + +# OLD + +7. Install yarn package manager and ttag-cli translation converter, info from https://github.com/ProtonMail/WebClients/issues/281 +``` +npm -g install yarn ttag-cli +``` + +8. At https://crowdin.com/project/protonmail/fi Click: 1 Mail / Proton Mail Web Application.Pot / [...] / Download. It downloads `webapp-fi.po` file, save it to `~/repos/`, convert it to JSON: +``` +npx ttag po2json webapp-fi.po --format=compact -p > fi_FI.json +```