globalfy-glossary is a TypeScript library that provides translations and exception handling for the Globalfy platform.
Installation To install the library, you can use npm or yarn:
npm install globalfy-glossary
# or
yarn add globalfy-glossary
glossary Usage Here's how you can use the Messages and Exceptions from the library:
import { Messages, Exceptions } from 'globalfy-glossary';
console.log(Messages.someMessage);
console.log(Exceptions.someException);
Replace someMessage and someException with the keys of the messages and exceptions you want to use.
Types The library provides the following types:
- Translations: An object with en, pt, and es properties, each of which is a string.
- Message: An object with code, status, and translations properties. code and status are numbers, and translations is a Translations object.
- Exception: Similar to Message, but used for exceptions.
Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License ISC