Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ai-translator
Advanced tools
A utility that translates JSON or CSV files using OpenAI's API
A utility that translates JSON or CSV files using OpenAI's API.
npx @axeptio/ai-translator "./to/translate/*.json" "./translated/{filename}_{locale}.json"
Arguments:
input Input file or directory
output Output file or directory
Options:
-f, --format <format> Format (csv, json) (default: null)
-l, --locales <locales> Locales to translate to (default: null)
-s, --separator <separator> Separator for CSV files (default: "auto")
-e, --encoding <encoding> Encoding for CSV files (default: "utf8")
-k, --apiKey <apiKey> OpenAI API key
-v, --verbose Verbose mode (default: false)
-j, --jobDescription <jobDescription> Job description file (default: null)
-h, --help display help for command
When using the CLI interactively, you will be prompted for the following information:
title
should not exceed 90 characters", etc.)When using the CLI interactively, you will be asked if you want to save these presets as a job description. If you do, you will be prompted for a name for the job options and a destination folder.
If you are processing the same file multiple times, you can save the job options in a JSON file and use it as a template for future runs. The job options file should respect the JSON schema in the src
directory, and look like this:
{
"format": "json",
"context": "This is marketing material for a landing page",
"style": "Formal",
"locales": ["fr", "de", "es"],
"protectedFields": ["name", "icon", "slug"]
}
FAQs
A utility that translates JSON or CSV files using OpenAI's API
The npm package ai-translator receives a total of 0 weekly downloads. As such, ai-translator popularity was classified as not popular.
We found that ai-translator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.