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

2.1.0 • Public • Published

Translation

This is a library for translating text.

Code Style CI Test CI Package Package npmjs

Summary

Requirements

Installation

Using npm:

$ npm install --save @benjaminnoufel/translation

Using yarn:

$ yarn add @benjaminnoufel/translation

Config options

key value default
locale string en
fallbackLng string en
separator string .
fallbackMsg string TODO{separator}{word}{locale} or ""
messages object {}

⚠️ messages must respect the JSON norm

Examples

see Examples

Changelog

see CHANGELOG

Contributing

see CONTRIBUTING

License

see LICENSE

Package Sidebar

Install

npm i @benjaminnoufel/translation

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

20.4 kB

Total Files

10

Last publish

Collaborators

  • bnoufel