react-translation-firebase-errors
About
Function that returns errors generated by firebase, in the portugues and english language.
Installing
npm install react-translation-firebase-errors
or
yarn add react-translation-firebase-errors
API
translationFirebaseErrorsPTBR(error)
This function it for translating firebase errors, in portuguese language.
translationFirebaseErrorsEN(error)
This function it for translating firebase errors, in english language.
Parameter
error - Passing the error as a parameter.
Example
import { translationFirebaseErrorsPTBR } from 'react-translation-firebase-errors';
...
.catch((error) => {
const err = translationFirebaseErrorsPTBR(error.code);
alert(err);
});
Author
Henrique Luís Oliveira Marques
License
This project is under the MIT license. See the LICENSE to learn more.
Contact!