1.0.0 • Published 6 months ago
@jynsama/auto-translate v1.0.0
auto-translate
Automatically translate your i18n JSON files using OpenAI's GPT.
Installation
npm install -g auto-translateUsage
auto-translate <path-to-locales-folder>Requirements
- Node.js
- Git repository
- OpenAI API Key
Environment Variables
Before using auto-translate, you need to set your OpenAI API key:
export AT_OPENAI_API_KEY="your-openai-api-key"Folder Structure
The script expects your locales folder to follow this structure:
your-i18n-folder/ ├── en/ │ ├── file1.json │ └── file2.json ├── fr/ │ ├── file1.json │ └── file2.json └── it/ ├── file1.json └── file2.json ...
1.0.0
6 months ago