PHPackages                             kamal-abouzayed/quick-translate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kamal-abouzayed/quick-translate

ActiveLibrary[API Development](/categories/api)

kamal-abouzayed/quick-translate
===============================

Easily integrate Google Translate API with Laravel to automate multilingual translations across your app.

v1.0.0(1y ago)025MITPHP

Since Jan 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kamal-Abouzayed/quick-translate)[ Packagist](https://packagist.org/packages/kamal-abouzayed/quick-translate)[ RSS](/packages/kamal-abouzayed-quick-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

QuickTranslate
==============

[](#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
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Service Provider](#register-the-service-provider)
- [Publish the Configuration](#publish-the-configuration)
- [Usage](#usage)
- [License](#license)

Installation
------------

[](#installation)

To install the package, run the following command in your Laravel project's root directory:

```
composer require kamalabouzayed/quicktranslate
```

Register the Service Provider
-----------------------------

[](#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:

```
'providers' => [
    // ...
    KamalAbouzayed\QuickTranslate\QuickTranslateServiceProvider::class,
],
```

Starting from Laravel 5.5, package auto-discovery is supported, so you can skip this step.

Publish the Configuration
-------------------------

[](#publish-the-configuration)

To customize the package settings, publish the configuration file by running the following command:

```
php artisan vendor:publish --provider="KamalAbouzayed\QuickTranslate\QuickTranslateServiceProvider" --tag=config
```

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
---------------------

[](#example-configuration)

Here’s an example configuration you might use:

```
