ntzrbtr/deepl-translator

Command-line tool to translate language files using DeepL

v1.0.3 2023-01-19 07:41 UTC

This package is auto-updated.

Last update: 2024-04-19 10:21:06 UTC


README

This is a simple command-line tool to translate files containing locale strings in the form of PHP array (as e.g. used by Laravel) using the DeepL API.

Installation

Install the package using composer: composer require --dev ntzrbtr/deepl-translate.

Setup

Usage

  • Run vendor/bin/deepl-translate [options] <source> <target> to translate your file
    • <source> is the source file
    • <target> is the target file
    • Within [options] you can set the source and target language:
      • --source-language (default: en)
      • --target-language (default: de)