Download the PHP package kamal-abouzayed/quick-translate without Composer
On this page you can find all versions of the php package kamal-abouzayed/quick-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kamal-abouzayed/quick-translate
More information about kamal-abouzayed/quick-translate
Files in kamal-abouzayed/quick-translate
Package quick-translate
Short Description Easily integrate Google Translate API with Laravel to automate multilingual translations across your app.
License MIT
Informations about the package quick-translate
QuickTranslate
QuickTranslate is a Laravel package that enables easy translation of words into multiple languages using Google Translate. It simplifies the process of managing translations for your application.
Table of Contents
- Installation
- Service Provider
- Publish the Configuration
- Usage
- License
Installation
To install the package, run the following command in your Laravel project's root directory:
Register the Service Provider
If you're using Laravel 5.4 or below, you need to register the service provider in your config/app.php
file. Add the following line to the providers
array:
Starting from Laravel 5.5, package auto-discovery is supported, so you can skip this step.
Publish the Configuration
To customize the package settings, publish the configuration file by running the following command:
This command will create a configuration file at config/quick-translate.php
. You can set the supported locales and the path to the translations file in this config file.
Example Configuration
Here’s an example configuration you might use:
Usage
You can utilize the translation functionality by calling the translate
function.
Example
Here’s how you can translate a word using the package:
License
This package is licensed under the MIT license.