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

github.com/napcatstudio/translate/v2

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/napcatstudio/translate/v2

  • v2.0.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

translate

Tools to maintain meaning ordered word files.

It is a port of some pre go modules tools that go modules broke. It was also broken by the Google Translate API changes and API security changes.

It has one command line tool translate.

translate tool

translate is a tool for managing meaning ordered words files.

A meaning ordered words file is a file which has words, in one language, based on another file in a different language. The file name specifies the language. The filename must be of the form XX.words, where XX is a ISO-639 two letter language code.

For instance:

en.words Easy to use. Easy.

de.words Einfach zu gebrauchen. Einfach.

fi.words Helppokäyttöinen. Helppo.

It uses the Google Translate API V3 for translating.

Usage:

translate [-words wordsDir] [-credentials credentialsJson] command [arguments]

The commands are:

add mainLang newLang [newLang..]
  Add a new meaning ordered words file for newLang based on mainLang to
  wordsDir.

check
  Quick wordsDir check.  Does not check translation accuracy just
  consistency.  Does not call the Google Translate API.

supported displayLang
  Show the current Google supported languages in displayLang.

update mainLang
  Updates all meaning ordered words files in wordsDir.  Effectively,
  calls add on each existing non-mainLang language.

More on meaning ordered word files

A meaning ordered word file is a just a list of words and phrases. The file names take the form ISO639.words. Where ISO639 is an ISO-639 two letter language code.

A directory of these files can be maintained with these tools so that for different languages the meanings correspond by line.

Reference

Cloud Translation API

More Cloud Translation API

golang

github.com/napcatstudio/translate/v2

FAQs

Package last updated on 15 Aug 2022

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