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 ?
Describe the feature you would like to see
Include the original firebase exception message in exception properties,
EMAIL_EXISTSfor 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; }Is this the way to go ?