translate_shell

module to install https://github.com/soimort/translate-shell

abuxton

abuxton

4,913 downloads

4,639 latest version

4.3 quality score

Version information

  • 0.1.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.1
  • 0.1.0
released Jul 28th 2017
This version is compatible with:
  • Darwin
    ,
    RedHat

Start using this module

Documentation

abuxton/translate_shell — version 0.1.5 Jul 28th 2017

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with translate_shell
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

installs https://github.com/soimort/translate-shell on supported OS

Module Description

Deploys using https://github.com/soimort/translate-shell#option-1-direct-download method to create executable in path, see https://github.com/soimort/translate-shell/blob/develop/README.md for functionality

Setup

What translate_shell affects

  • provides capability to translate shell based documentation or inline interpriter using Google api

Setup Requirements OPTIONAL

You can copy manually install trans by adding executable the files dir to the module and using the puppet source to distribute it puppet://modules/translate_shell/trans or class { 'translate_shell': source => 'puppet://modules/translate_shell/trans', }

Beginning with translate_shell

include translate_shell class {'translate_shell': bin_dir => '/path/to/chosen/bin/dir', #default /usr/local/bin/ }

Usage

uses ISO-639-1 codes supported by Google https://cloud.google.com/translate/docs/languages

Simple module to install executable of translate-shell trans CLI usage trans -t fr hello #-t is target language code ie french is fr

usage with puppet man pages or help pages for example puppet describe file >file.txt && trans -t fr -b -i file.txt,

Reference

Limitations

only tested on Rhel, centos and Darwin

Development

feel free to update to add homebrew support, Debian etc

Release Notes/Contributors/Etc Optional