https://github.com/egyjs/vue-auto-detect-translation
auto detect Vue translation keys, with auto translate
https://github.com/egyjs/vue-auto-detect-translation
auto-detection auto-translation automation i18n-auto-translation javascript nodejs translation vue vue3
Last synced: 8 months ago
JSON representation
auto detect Vue translation keys, with auto translate
- Host: GitHub
- URL: https://github.com/egyjs/vue-auto-detect-translation
- Owner: egyjs
- Created: 2022-10-24T01:02:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T01:35:46.000Z (over 3 years ago)
- Last Synced: 2025-10-11T16:47:56.245Z (8 months ago)
- Topics: auto-detection, auto-translation, automation, i18n-auto-translation, javascript, nodejs, translation, vue, vue3
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/vue-detect-translation
- Size: 128 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Vue auto detect translation
It generates a translation file for you based on the translations detected in Your Application.
Furthermore, it supports free and automatic translations
using [API Translator (Google translate)](https://www.npmjs.com/package/api-translator)
[](https://www.npmjs.com/package/vue-detect-translation)
[](https://www.npmjs.com/package/vue-detect-translation)
[](https://www.npmjs.com/package/vue-detect-translation)
## Installation
```bash
npm install -g vue-detect-translation
```
## Usage
```bash
v-detect-t
# options
--path= # path you want to scan for translation (default: src)
--auto-translate= # language to translate to (example: --auto-translate=ar)
--output= # output json file name (default: locale/en.json)
--funcName= # function name to detect translation (default: $t)
```
## Todo
- [ ] Convert to typescript + add types
- [ ] change the argument library ( currently using minimist )
- [ ] Add tests (Jest)
- [ ] Add option `language-from` in autoTranslate
- [x] Add option `language-to` in autoTranslate (ex. `--auto-translate=fr`)
- [ ] support multiple Programming languages (currently support only`vue|js|jsx|ts|tsx`)
- im think to create an option called `extentions` (for example `--language=vue,js,jsx,ts,tsx`)
- [x] ~~create custom "free-translate" pkg , to speed up the translation process and upgrade `puppeteer` to
@latest~~ **([api-translator](https://www.npmjs.com/package/api-translator))**
# vue-auto-detect-translation
# Contributing
#### Please do! I'm open to any suggestions or improvements in this project.