Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate to Portuguese #401

Open
leite08 opened this issue Apr 18, 2021 · 7 comments
Open

Translate to Portuguese #401

leite08 opened this issue Apr 18, 2021 · 7 comments

Comments

@leite08
Copy link

leite08 commented Apr 18, 2021

We already have a i18n setup with some languages available, but we're missing Portuguese (Brazil and Portugal).

Being this such an foundational tool to check the contents of the blockchain, its important we're translated to as many languages as possible.

So I suggest we translate the explorer to Portuguese as well.

@leite08
Copy link
Author

leite08 commented Apr 18, 2021

I'm willing to put a PR up, if that's ok.

@frnd
Copy link

frnd commented Apr 30, 2021

hello,

I am adding Spanish, but when I try to start the application it shows in Spanish for a moment and then all the content disappears.

It seems that I need to modify some configuration file to enable the language, but I can't find what it is.

Any help is highly appreciated, thank you very much.

@leite08
Copy link
Author

leite08 commented May 1, 2021

Hey, @frnd !

These are the files I edit/added to get it working:

  • ./source/features/i18n/translations
  • ./source/features/i18n/translations/404
  • ./next.config.js, constant SUPPORTED_LOCALES
  • enum SupportedLocale - ./source/features/i18n/types.ts

Cheers!

@frnd
Copy link

frnd commented May 7, 2021

Hello @leite08,

Thanks for you reply! I have changed the same files to add spanish but is not working. No idea what could be the problem.

https://github.com/input-output-hk/cardano-explorer-app/pull/404/files

@leite08
Copy link
Author

leite08 commented May 9, 2021

Hey, @frnd !

No worries! I'm also getting used to this repo.

If you could post the output of the running app and browser's console - as well as network errors, if any - when the error happens, I could try to help you debug it.

@frnd
Copy link

frnd commented May 14, 2021

Hello @leite08,

Thanks for your support and sorry for my late reply, I'm having a very busy weeks.

No error in the console. I think the issue is related with the way I was trying to test. I didn't want to install a complete node in my computer for a simple translation but seems that is necessary. I'm setting up a cardano-graphql node but it takes ages to start and sync and consumes a lot of resources. Do you know if is possible to start it for testnet instead of mainet?

Thanks for your help.

@leite08
Copy link
Author

leite08 commented May 29, 2021

I was looking into it as well.

The readme states it should connect to a remove managed dev version of the API out of the box, but it actually reverts to a local GraphQL instance if .env is not setup (see environments.ts), which the readme doesn't instruct how to setup config.

This is what I get on Chrome's DevTools:

image

Another alternative seems to be run a Docker image, which I haven't tried:

The environment is configured to access a remote managed deployment of the API,
however you can run a local stack using Docker and use a .env to work offline.
See .env.example

I checked out the API project, to which the frontend tries to connect to (https://github.com/input-output-hk/cardano-graphql) but haven't given it a go yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants