-
-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Labels
Description
Describe the feature you would like to see
Include the original firebase exception message in exception properties, EMAIL_EXISTS for example. This would enable to handle translation of the error messages based on this key.
The only way right now is to use this bundle english translation as a translation key.
interface FirebaseException extends Throwable { public function getMessageKey(): string; }
trait HasMessageKey
{
/** @var string */
protected string $messageKey = '';
/** @return string */
public function getMessageKey(): string
{
return $this->messageKey;
}
}
Is this the way to go ?