globalfy-glossary
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

Globalfy Glossary

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

/globalfy-glossary/

    Package Sidebar

    Install

    npm i globalfy-glossary

    Weekly Downloads

    186

    Version

    1.9.0

    License

    ISC

    Unpacked Size

    30.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • globalfy
    • germano.carvalho
    • budadev