# vue-localized-string

> A vue plugin to use localized string object like { "en": "hello world", "zh": "你好 世界" }

Latest version **1.0.2** (published 2016-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-localized-string
pnpm add vue-localized-string
yarn add vue-localized-string
bun add vue-localized-string
```

## 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.2 |
| Published | 2016-11-22 |
| First published | 2016-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alan Zhang |
| Maintainers | zcfan |
| Keywords | vue, localizedstring |

## Links

- npm: https://www.npmjs.com/package/vue-localized-string
- Repository: https://github.com/zcfan/vue-localized-string
- Homepage: https://github.com/zcfan/vue-localized-string#readme
- Issues: https://github.com/zcfan/vue-localized-string/issues
- npm.io page: https://npm.io/package/vue-localized-string

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-11-22
- 1.0.1 — 2016-11-21
- 1.0.0 — 2016-11-21

## README

A vue plugin to use localized string object like { \"en\": \"hello world\", \"zh\": \"你好 世界\" }

```
// If using a module system (e.g. webpack), import LocalizedString and then call Vue.use(LocalizedString).
// var LocalizedString = require('vue-Localized_string');
// Vue.use(LocalizedString);


// In a component.

this.$setLang('zh'); // Set current language.

// Grab a localizedString.
var localizedStringObj = {
  en: 'hello world',
  zh: '你好 世界'
};

console.log(this.$localizedString(localizedStringObj)); // 你好 世界

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