@benjaminnoufel/translation

This is a library for translating text for react with hooks or Provider.

Usage no npm install needed!

<script type="module">
  import benjaminnoufelTranslation from 'https://cdn.skypack.dev/@benjaminnoufel/translation';
</script>

README

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 {}

:warning: messages must respect the JSON norm

Examples

see Examples

Changelog

see CHANGELOG

Contributing

see CONTRIBUTING

License

see LICENSE