I'd like to localize auth based error messages like "Invalid credentials. Please check the email and password." Since setting the locale didn't work I checked the translations folder on github, but it seams this strings are not translatable? Is that correct?
The error that is sent back from the server is always in English.
You can see here all the errors https://github.com/appwrite/appwrite/blob/master/app/config/errors.php
If they would change you will the new one in that file so the best use-case would be to translate them on the client side.
Thanks! Error codes would come handy in this case. I hope in the future the whole software will be translated.
Every exception will have a type, so you can decide what to output based on the type.
Recommended threads
- Spanish reset password email errors
I set language using: const appwrite = new Client() appwrite.setLocale('es') 1. User name is missing in spanish 2. Unnecesary dot after "Gracias": English ver...
- [AppwriteException: Network request fail...
I am getting this error whenever I run getAllSchools I have checked the entire project and I have CRUD permissions enabled for any role but I am still getting t...
- Issue with write permission for all user...
I have a problem with creating new documents (uploading post with video, image and text in my case), for every user such error occurs: `The current user is not ...