# simple-locale

> simple-locale is JavaScript locale manager for easy I18N support.

Latest version **1.0.0** (published 2016-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-locale
pnpm add simple-locale
yarn add simple-locale
bun add simple-locale
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-09-08 |
| First published | 2016-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | .modernator |
| Maintainers | modernator |
| Keywords | locale |

## Links

- npm: https://www.npmjs.com/package/simple-locale
- Repository: https://github.com/rico345100/simple-locale
- Homepage: https://github.com/rico345100/simple-locale#readme
- Issues: https://github.com/rico345100/simple-locale/issues
- npm.io page: https://npm.io/package/simple-locale

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-09-08

## README

# simple-locale
simple-locale is JavaScript locale manager for easy I18N support.

## Installation
> npm install --save simple-locale

## Isomorphic
You can use this module both Node.js or Browser platform if you using web bundler.

```javascript
// node.js
const Locale = require('simple-locale');
const locale = new Locale({
	us_EN: 'us_EN',
	ko_KR: 'ko_KR'
});
locale.set(locale.us_EN);

locale.load(locale.us_EN, require('./i18n/us_EN.json'));
locale.load(locale.ko_KR, require('./i18n/ko_KR.json'));

// browser
// it requires bundler like browserify or webpack!
import Locale from 'simple-locale';

const locale = new Locale({
	us_EN: 'us_EN',
	ko_KR: 'ko_KR'
});
locale.set(locale.us_EN);	// or, you can use just string: locale.set('us_EN') in this case.

locale.load(locale.us_EN, require('./i18n/us_EN.json'));	// if you are using webpack, make sure to load json-loader in your webpack config.
locale.load(locale.ko_KR, require('./i18n/ko_KR.json'));

---
_Source: https://npm.io/package/simple-locale · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
