2.1.0 • Published 4 years ago
@benjaminnoufel/translation v2.1.0
Translation
This is a library for translating text.
Summary
Requirements
Installation
Using npm:
$ npm install --save @benjaminnoufel/translationUsing yarn:
$ yarn add @benjaminnoufel/translationConfig options
| key | value | default |
|---|---|---|
| locale | string | en |
| fallbackLng | string | en |
| separator | string | . |
| fallbackMsg | string | TODO{separator}{word}{locale} or "" |
| messages | object | {} |
:warning: messages must respect the JSON norm
Examples
see Examples
Changelog
see CHANGELOG
Contributing
see CONTRIBUTING
License
see LICENSE