Download the PHP package gymmed/laravel-package-translator without Composer
On this page you can find all versions of the php package gymmed/laravel-package-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gymmed/laravel-package-translator
More information about gymmed/laravel-package-translator
Files in gymmed/laravel-package-translator
Package laravel-package-translator
Short Description Translates laravel package language document using google translate. Works for ecommerce bagisto documents.
License MIT
Homepage https://github.com/GymMed/Laravel-Package-Translator
Informations about the package laravel-package-translator
Laravel Package Translator
Neat way to translate Laravel package documents with google translate. Highly recommend for Bagisto package development. This package uses stichoza/google-translate-php to translate.
Installation
You can install the package via composer:
Usage
To use the command with arguments and options, follow this format:
Explanation of Arguments:
- {package}: The package path, e.g., Namespace/PackageName
- {translateFrom}: Language code with source translation file, e.g., en/app
- {translateTo}: Language code with target translation file, e.g., lt/app
- {--comments}: (Optional) If you want to include comments.
- {--force}: (Optional) If you want to force the operation.
usage example:
will translate document from:
will create translated document in:
returned results:
You can translate and leave original text as comments for manual double checking:
Use --force option to overwrite document.
returned results:
as code from:
to:
If you decide you don't want comments anymore, you can use:
example:
returned results: