diff --git a/ProtonMail.md b/ProtonMail.md new file mode 100644 index 0000000..005a28c --- /dev/null +++ b/ProtonMail.md @@ -0,0 +1,75 @@ +# Testing ProtonMail Finnish translations + +## NOTE: See last step 17. about login problem. + +1. Newest Linux Mint/Ubuntu/Debian/WSL: + +2. Install Volta node version manager like described at: https://docs.volta.sh/guide/getting-started + +3. Create directory repos +``` +mkdir repos +``` + +4. Change to directory repos +``` +cd repos +``` + +5. Install git and build-essential +``` +sudo apt -y install git build-essential +``` + +6. Install node +``` +volta install node@18 +``` +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 +``` + +9. Clone ProtonMail WebClients +``` +git clone https://github.com/ProtonMail/WebClients.git +``` + +10. Change to directory WebClients +``` +cd WebClients +``` +11. Edit list of locales +``` +nano -c applications/mail/locales/config/locales.json +``` +12. Above en_US add: +``` +"fi_FI": "Finnish", +``` +Save and exit: `Ctrl-o Enter Ctrl-x` +``` + +13. Copy ProtonMail translation to it's directory: +``` +cp ../fi_FI.json applications/mail/locales/ +``` + +14. Info from https://github.com/ProtonMail/WebClients . Install all dependencies for the entire monorepo & symlink local dependents to one another: +``` +yarn install +``` + +15. Run web clients by running proton- . Example: proton mail web client +``` +yarn workspace proton-mail start +``` + +16. Login with your ProtonMail username with webbrowser at: http://localhost:8080/ + +17. Problem: Human Verification complains about localhost address, or unsupported webbrowser. There is some variable `const ignoreHumanVerification` at `packages/shared/lib/api/helpers/withApiHandlers.js` but changing it does not work. Unable to login to test ProtonMail translation.