# vue-i18n-resource-generator

> A CLI tool that utilizes the OpenAI API to automatically generate static Vue I18n resources.

Latest version **0.0.3-e** (published 2023-06-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-i18n-resource-generator
pnpm add vue-i18n-resource-generator
yarn add vue-i18n-resource-generator
bun add vue-i18n-resource-generator
```

Provides the command `vue-i18n-resource-generator`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3-e |
| Published | 2023-06-04 |
| First published | 2023-06-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 34.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | floog9 |
| Keywords | Vue, OpenAI, Vue I18n, translations, automatic translations, translate Vue I18n, automatically translate Vue I18n files, generate Vue I18n resources, ChatGPT, OpenAI API |

## Links

- npm: https://www.npmjs.com/package/vue-i18n-resource-generator
- Homepage: https://github.com/DavidR95/vue-i18n-resource-generator#readme
- npm.io page: https://npm.io/package/vue-i18n-resource-generator

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [openai](https://npm.io/package/openai.md) ^3.2.1
- [commander](https://npm.io/package/commander.md) ^10.0.1
- [gpt-3-encoder](https://npm.io/package/gpt-3-encoder.md) ^1.1.4
- [partial-json-parser](https://npm.io/package/partial-json-parser.md) ^1.2.2
- [@commander-js/extra-typings](https://npm.io/package/@commander-js/extra-typings.md) ^10.0.3

## 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

- 0.0.3-e (latest) — 2023-06-04
- 0.0.3-d — 2023-06-04
- 0.0.3-c — 2023-06-04
- 0.0.3-b — 2023-06-04
- 0.0.3-a — 2023-06-04
- 0.0.3 — 2023-06-04
- 0.0.2 — 2023-06-04
- 0.0.1 — 2023-06-04

## README

# Vue I18n Resource Generator

A CLI tool that utilizes the OpenAI API to automatically generate static Vue I18n resources.

## Preface

Note that this tool is still generally very much in the experimental phase. It is currently limited to only converting/generating JSON and provides no guarantee that the translations returned will be accurate.

If you are paying as you go for OpenAI, be aware that it is likely that multiple requests will be sent to OpenAI during this process.

## Installation

```bash
npm install -g vue-i18n-resource-generator
```

## Usage

```bash
vue-i18n-resource-generator [options]
```

### Options

```
Options:
  -v --version                Outputs the current library version.
  -k, --key <key>             Your OpenAI API key.
  -i, --input-path <path>     The path to the JSON file containing the Vue I18n messages you would like to translate.
  -o, --output-path <path>    The path to the directory where you would like your translated JSON files to be written to.
  -l, --locales <locales...>  The list of locales you would like to translate your Vue I18n messages in to. One JSON file will be generated per locale.
  -h, --help                  Displays help information.
```

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