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

FR: Errors returned in several languages #2380

Open
cargallo opened this issue Nov 25, 2019 · 1 comment
Open

FR: Errors returned in several languages #2380

cargallo opened this issue Nov 25, 2019 · 1 comment

Comments

@cargallo
Copy link

cargallo commented Nov 25, 2019

Environment

  • Operating System version: Windows 10
  • Browser version: Google Chrome 78.0.3904.108 (Build oficial) (64 bits)
  • Firebase SDK version: 7.2.2
  • Firebase Product: auth, database, storage

The errors returned by the SDK are only in English

Steps to reproduce:

When an error occurs, the SDK returns them only in English.

I imagine it can be complicated to perform this function in the SDK, but I have an idea.

You can provide in the errors documentation page of each product (auth, database, storage) an export option to json format, since all the errors are already listed there, and the user can translate the entire page to whatever language they need. So each user could then export to json and use it for custom mapping code in their code.

Relevant Code:

Just an idea for at least have a minimal solution until the sdk could manage multiple languages.

I am talking about this pages, that already exists and can be translated to whatever language

https://firebase.google.com/docs/auth/admin/errors?hl=es-419

@rommelpe
Copy link

Thanks for sending a feature request, @cargallo! I created an internal FR (b/145281892) as well.

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

No branches or pull requests

4 participants