Apple Developer
This question concerns Apple platform
Hello,
I don't get how to localize errors returned from AppWrite. The only things present in AppwriteError instance are code and message. The "type" is always nil.
So, if I am not mistaken the only way to provide users with accurate error description is to localize errors based on the "message" property..?
If so, then we will get something like
//...
switch error.message {
case "Invalid email : please provide valid email": return "something localized"
case ...//
}
If so, this is not okay. I still hope though that this could be done easily and I did not get how to do that because I am new to AppWrite
Thanks for your help