native-speaker v1.2.15
A modern language :cn: :us: localisation library built on top of i18n
A modern language :cn: :us: localisation library built on top of i18n
Features
- Supports multiple randomly picked message localisations :white_check_mark:
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.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago