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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...