mleko/lets-play

Translate all strings

Opened this issue · 12 comments

mleko commented

Some strings are hardcoded in Polish, make them translatable

@mleko Can I contribute to this?

@mleko trying to build project on local machine, navigated to frontend folder and ran the following commands:-

npm install
npm start

Getting a bunch of errors, is there something that I'm missing?

mleko commented

Yes. I've checked, there is error in README. In this project yarn is used instead of npm
try running

yarn install
yarn start

@mleko any instructions on how to build and run the backend code? I want to check if the translations are working as intended.

mleko commented

I updated README in commit 4b2b18f
I hope it will make easier to run app

mleko commented

Hi @abbasCoder51 are you still interested in working on this issue?

@mleko yes I am, I'll do a pull request soon

lets-play-screenshot

I've ran both the frontend (http://localhost:8080/) and backend (http://localhost:8000/). When I try to login seem to get this error. Have I missed out a step?

mleko commented

Can you check var/log/dev.log for errors?

[2019-11-24 00:17:21] php.CRITICAL: Uncaught Exception: An error occurred while trying to encode the JWT token. Please verify your configuration (private key/passphrase) {"exception":"[object] (Lexik\Bundle\JWTAuthenticationBundle\Exception\JWTEncodeFailureException(code: 0): An error occurred while trying to encode the JWT token. Please verify your configuration (private key/passphrase) at C:\Work Projects\lets-play\backend\vendor\lexik\jwt-authentication-bundle\Encoder\LcobucciJWTEncoder.php:37, InvalidArgumentException(code: 0): It was not possible to parse your key, reason: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt at C:\Work Projects\lets-play\backend\vendor\lcobucci\jwt\src\Signer\OpenSSL.php:90)
[stacktrace]

I think this is the issue, any suggestions?

mleko commented

It looks related to JWT keys. Info how to configure/generate keys is available https://github.com/lexik/LexikJWTAuthenticationBundle/blob/master/Resources/doc/index.md#generate-the-ssh-keys