1.1.3 • Published 2 years ago

react-translation-firebase-errors v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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


License

This project is under the MIT license. See the LICENSE to learn more. Contact!

1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago