Hi, how can I make a snackbar with a changed error text when registering with catch (e)? I want to translate the error text.
You can do something like this
errorToMyLang(error){
swtich(error)
case 'Some errror':
return 'Translated'
default:
return error;
}
You'll compere the server error and then show the user an translated one
How to change errors text?
I suggest looking at the error type: https://appwrite.io/docs/response-codes#errorTypes
Thank you
[SOLVED ]How to change errors text?
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...