Skip to content

Paquete para manejar de forma simple las traducciones de los errores disparados por Firebase.

Notifications You must be signed in to change notification settings

Asinox/firebase-error-messages-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

firebase-error-messages-i18n

Installation

Using npm

$ npm i firebase-error-messages-i18n

Using yarn

$ yarn add firebase-error-messages-i18n

Usage

import firebase from "firebase";
import fbmessage from "firebase-error-messages-i18n/es-do.json";

firebase
  .auth()
  .signInWithEmailAndPassword("email", "password")
  .catch(e => {
    const errorText = fbmessage[e.code] || e.message;
    alert(errorText);
  });

Contribution

Envía un pull request.

License

MIT

About

Paquete para manejar de forma simple las traducciones de los errores disparados por Firebase.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published