Socket
Socket
Sign inDemoInstall

xlifftranslate-google-api

Package Overview
Dependencies
208
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xlifftranslate-google-api

Translate xliff files using the Google Cloud Translation API


Version published
Weekly downloads
93
increased by173.53%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npm

xlifftranslate

Translate xliff files using the Google Cloud Translation API

How to use it

  1. Install globally with npm install -g xlifftranslate.
  2. Follow the instructions at https://developers.google.com/identity/protocols/application-default-credentials to setup your google application credentials.
  3. Run xlifftranslate in your project directory.
Options
  • --i18nPath specify the directory where the xliff files are found
  • --verbose "true" adds verbose output with translations.
  • --ignoreText "ignoreme ignoremetoo" ignores the specified strings with default delimiter " ".
  • --ignoreDelimiter " " Specify the delimiter for the --ignoreText option
  • --skipDifferent "true" Skip translations of strings where source and target don't match.

Examples

To run, make sure your Google Translate API KEY are in your environment:

export GOOGLE_API_KEY=YOUR_API_KEY

Example run command

xlifftranslate --i18nPath src/i18n

Keywords

FAQs

Last updated on 06 Apr 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc