native-speaker

1.2.15 • Public • Published

A modern language 🇨🇳 🇺🇸 localisation library built on top of i18n

Coverage Status Known Vulnerabilities Version Downloads

A modern language 🇨🇳 🇺🇸 localisation library built on top of i18n

Features

  • Supports multiple randomly picked message localisations

How to install

npm install native-speaker

How to use

Use it in your app

const Locale = require('native-speaker')

const message = Locale.get('en', 'hello_world')

Available environment variables

Variable Description Required Default value
DEFAULT_LOCALE The locale to be used when the desired locale is not available. false en

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

License

Read the license for permissions and limitations.

Readme

Keywords

none

Package Sidebar

Install

npm i native-speaker

Weekly Downloads

1

Version

1.2.15

License

MIT

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • hfreire