npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

core-translator-cli

v0.1.16

Published

Command-line interface for core-translator service

Downloads

27

Readme

Core Translator CLI

Command-line interface for the Core Translator service. Translate iOS strings, PO files, browser extensions, and more.

Installation

npm install -g core-translator-cli

Or use directly with npx:

npx core-translator-cli --help

Configuration

Set your authentication token and backend endpoint:

# Using environment variables
export CORE_TRANSLATOR_TOKEN="your-token-here"
export CORE_TRANSLATOR_BACKEND_ENDPOINT="https://api.example.com"

# Or using the config command
core-translator config --token YOUR_TOKEN --endpoint https://api.example.com

Usage

Translate Single Text

core-translator text --text "Hello World" -t zh-Hans

Translate iOS xcstrings

core-translator xcstrings ./Localizable.xcstrings -t ja

Translate PO Files

# Single PO file
core-translator po ./messages.po -t fr

# Multiple PO files using glob pattern (automatically detects language from filename)
core-translator po "src/locales/*.po"

# With custom concurrency
core-translator po "src/locales/*.po" --concurrency 8

# Disable automatic language extraction from filename
core-translator po "src/locales/*.po" --no-extract-language -t fr

Translate Browser Extension

core-translator browser-ext ./_locales/en/messages.json -t es -o ./_locales/es/messages.json

Translate FormatJS Files

core-translator formatjs "./locales/*.json" --target_language fr

Translate Rails YAML

core-translator rails-yaml --source config/locales/en.yml --target config/locales/ja.yml

Translate Xcode .strings Files

core-translator xcode-strings ./en.lproj/Localizable.strings -t es

Translate Single File

core-translator single-file ./README.md --target_language zh-Hans -o ./README.zh.md

Commands

  • text - Translate a single text string
  • xcstrings - Translate iOS .xcstrings localization files
  • po - Translate GNU gettext .po files (supports glob patterns for multiple files)
  • browser-ext - Translate browser extension _locales JSON files
  • formatjs - Translate FormatJS JSON files
  • rails-yaml - Translate Rails i18n YAML files
  • xcode-strings - Translate Xcode .strings files
  • single-file - Translate a single text file
  • config - Configure API credentials

Options

All commands support these common options:

  • -t, --target-language <lang> - Target language code (required)
  • -s, --source-language <lang> - Source language code (default: en)
  • -a, --app-name <name> - Application name for context
  • --endpoint <url> - Override backend endpoint
  • --token <token> - Override authentication token
  • -v, --verbose - Enable verbose logging

Supported Languages

  • ja, ja-JP - Japanese
  • ko, ko-KR - Korean
  • zh-Hans, zh-CN - Chinese (Simplified)
  • zh-Hant, zh-TW - Chinese (Traditional)
  • zh-HK - Chinese (Hong Kong)
  • de, de-DE - German
  • fr, fr-FR - French
  • it - Italian
  • es, es-ES, es-MX - Spanish
  • pt, pt-BR, pt-PT - Portuguese
  • en, en-US, en-GB - English
  • And many more...

License

MIT