native-speaker

A modern language localisation library built on top of i18n

MIT License

Downloads
11
Stars
1

A modern language ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡บ๐Ÿ‡ธ localisation library built on top of i18n

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.

Package Rankings
Top 16.13% on Npmjs.org
Badges
Extracted from project README
Coverage Status Known Vulnerabilities Version Downloads