@pedro_s/translation.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

translation.js

A translation library to help applications managing, loading and applying translations.

Usage

Simple example of translation

import TranslationJS, { T } from "@pedro_s/translation.js"
TranslationJS.LoadTranslation("pt", { user: { name: "nome" } }, true)
T("user.name")

T will return nome

You can also directly load a JSON.parse() into the LoadTranslation function

Development

To build the library all you have to do is run the following commands

  yarn
  yarn build

Package Sidebar

Install

npm i @pedro_s/translation.js

Weekly Downloads

1

Version

1.0.1

License

GPL-3.0

Unpacked Size

39.9 kB

Total Files

5

Last publish

Collaborators

  • pedro_s