Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18n-translate-locale

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-translate-locale

Automatically translates i18n JSON files via Google Translate API

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

i18n-translate-locale

Automatically translates node-i18n JSON files into different languages via Google Translate API.

Installation

npm install -g i18n-translate-locale

Usage

You need a Google Translate API Key.

i18n-translate-locale apiKey dir sourceLang (targetLang1,targetLang2,..)

e.g.

i18n-translate-locale iuOHAEbo9H788d34h93h4diouehIUHI locale/ en es,fr

This would translate all strings in locale/en/*.json (relative to current folder in the shell) from English to Spanish and French, based on the Google Translate API language codes.

The target languages list is optional. When not present, it will be translated to all languages supported by Google Translate.

Credits

Based on i18n-translate by Thomas Brüggemann.

This fork is sponsored by espeakers.

Keywords

FAQs

Package last updated on 16 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc