Socket
Book a DemoInstallSign in
Socket

@phila/auto-translator-cli

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phila/auto-translator-cli

A tool to translate and manage localization files.

latest
npmnpm
Version
0.0.13
Version published
Maintainers
4
Created
Source

@phila/auto-translator-cli

This is in npm at https://www.npmjs.com/package/@phila/auto-translator-cli

This tool will translate all of the keys in a json object into any other languages that Amazon Translate offers.

Setup

Any project that uses it should, by default, have an i18n folder at the location src/i18n:

i18n-folder

This location and folder name can be anything, but the cli questions are set to import and export from src/i18n by default

import-folder export-folder

The english file you import can be a .js file, and it should export a JSON object:

export-folder

This object MUST

  • use "" around all keys and values
  • not have any trailing commas after the last entry in a nested object

There also needs to be an .env which contains the keys:

AWS_PROFILE_NAME=default
GIT_BRANCH=feature/add-tutorials
ENGLISH_FILENAME=en.js

Installation

To use auto-translator-cli, first install it globally using

npm i -g @phila/auto-translator-cli

Use

FAQs

Package last updated on 09 Sep 2025

Did you know?

Socket

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.

Install

Related posts