PHPackages                             codebuglab/laravel-go-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. [Localization &amp; i18n](/categories/localization)
4. /
5. codebuglab/laravel-go-translate

ActiveLibrary[Localization &amp; i18n](/categories/localization)

codebuglab/laravel-go-translate
===============================

Translate laravel resource, vendor, folder or file from google translation without requiring any api information

v1.0.1(4y ago)354724MITPHPPHP &gt;=7.0

Since Jun 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/codebuglab/laravel-go-translate)[ Packagist](https://packagist.org/packages/codebuglab/laravel-go-translate)[ RSS](/packages/codebuglab-laravel-go-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

⚡⚡⚡ Laravel Go Translate
========================

[](#-laravel-go-translate)

Translate laravel resource, vendor, folder or file from google translation without requiring any api information.

[![Issues](https://camo.githubusercontent.com/9a31ee616b5cb372aba9344d9449a6ac09d6bf52fd54a22ed3ef217d2963af8d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f636f64656275676c61622f6c61726176656c2d676f2d7472616e736c617465)](https://github.com/codebuglab/laravel-go-translate/issues)[![Forks](https://camo.githubusercontent.com/127c656c28cfa55b3256bdafda562f460e024c192d2c54f1db91b2039cfa1f81/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f636f64656275676c61622f6c61726176656c2d676f2d7472616e736c617465)](https://github.com/codebuglab/laravel-go-translate/network/members)[![Stars](https://camo.githubusercontent.com/f1ca123f3875d0f2a824a0d1b2144b8b56002dd7074c9eeee5b70c1a7c8fd5b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636f64656275676c61622f6c61726176656c2d676f2d7472616e736c617465)](https://github.com/codebuglab/laravel-go-translate/stargazers)[![Download](https://camo.githubusercontent.com/4431c53c1145e9218a1f19e804b46e23c6e59cb238a6a878d8eed927dd04a33a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656275676c61622f6c61726176656c2d676f2d7472616e736c617465)](https://packagist.org/packages/codebuglab/laravel-go-translate)[![License](https://camo.githubusercontent.com/65a211dd625172a5df39bf9815cae169b1ce3e3c406dba81525151275fcd8de8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656275676c61622f6c61726176656c2d676f2d7472616e736c617465)](https://github.com/codebuglab/laravel-go-translate/blob/main/LICENCE)

[![Laravel go translate](logo.png)](logo.png)

Table of contents
------------------

[](#table-of-contents-)

- [Installation](#installation)
- [Translate Commands](#translatecommands)
    - [Resource](#resource)
    - [Vendor](#vendor)
    - [Folder](#folder)
    - [File](#file)
- [Options](#Options)
    - [Extension](#extension)
- [Notices](#notices)
- [Testing](#testing)
- [License](#license)

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

[](#installation)

To install this package through composer run the following command in the terminal

```
composer require codebuglab/laravel-go-translate
```

Or if you want to use it only on development mode

```
composer require codebuglab/laravel-go-translate --dev
```

Translate Commands
------------------

[](#translate-commands)

- This package can translate laravel project by multiple ways from `php` or `json` files

### Resource

[](#resource)

```
php artisan go-translate:resource {sourceLang} {destinationLang}

```

- This command take `sourceLang` and `destinationLang` as variables and translate all files in `resources/lang/{sourceLang}`to `resources/lang/{destinationLang}`

```
php artisan go-translate:resource en ar

```

- This is an example of a command will translate all files in `resources/lang/en` folder and transfer them to `resources/lang/ar` folder after translation from `en` to `ar`

[![](translate_resource.gif)](translate_resource.gif)

### Vendor

[](#vendor)

```
php artisan go-translate:vendor {sourceLang} {destinationLang}

```

- This command take `sourceLang` and `destinationLang` as variables and translate all files in `resources/lang/vendor/{sourceLang}`to `resources/lang/vendor/{destinationLang}`

```
php artisan go-translate:vendor en ar

```

- This is an example of a command will translate all files in `resources/lang/vendor/en` folder and transfer them to `resources/lang/vendor/ar` folder after translation from `en` to `ar`

[![](translate_vendor.gif)](translate_vendor.gif)

### Folder

[](#folder)

```
php artisan go-translate:folder {sourceLang} {destinationLang} {sourceFolder} {destinationFolder}

```

- This command take `sourceLang`, `destinationLang`, `sourceFolder` and `destinationFolder` as variables and translate all files in `{sourceFolder}` to `{destinationFolder}` from `{sourceLang}` to `{destinationLang}`

```
php artisan go-translate:folder en ar resources/lang/en resources/lang/test_folder

```

- This is an example of a command will translate all files in `resources/lang/en` folder and transfer them to `resources/lang/test_folder` folder after translation from `en` to `ar`

[![](translate_folder.gif)](translate_folder.gif)

### File

[](#file)

```
php artisan go-translate:file {sourceLang} {destinationLang} {sourcePath} {destinationPath}

```

- This command take `sourceLang`, `destinationLang`, `sourcePath` and `destinationPath` as variables and translate `{sourcePath}` file to `{destinationPath}` from `{sourceLang}` to `{destinationLang}`

```
php artisan go-translate:file en ar resources/lang/en/auth.php resources/lang/test_folder/new_name.php

```

- This is an example of a command will translate the file in `resources/lang/en/auth.php` and transfer it to `resources/lang/test_folder/new_name.php` file after translation from `en` to `ar`

[![](translate_file.gif)](translate_file.gif)

Options
-------

[](#options)

### Extension

[](#extension)

```
php artisan go-translate:resource {sourceLang} {destinationLang} {--E=json}

```

- `--E` is an optional variable you can convert php files to json during translation

```
php artisan go-translate:resource en ar --E=json

```

- This option wouldn't only translate files in `resources/lang/en` to `resources/lang/ar`, This will also convert files to json during translation
- An example of that `resources/lang/en/auth.php` which is based laravel file created with all projects will translate and save at `resources/lang/ar/auth.json`
- Current extension options for reading and converting are `json`, `php`

[![](translate_with_extension.gif)](translate_with_extension.gif)

Notices
-------

[](#notices)

- this package build upon [dejurin/php-google-translate-for-free](https://github.com/dejurin/php-google-translate-for-free) package which use google translate to translate languages and some times you take bans from google for translating multiple lines in a few amount of time, So and for now if you face some problems during translating exit command by clicking `ctrl+c` and try to change your ip address of wait for couple or hours till the ban ends.
- Supported languages are listed in [Google API docs](https://cloud.google.com/translate/docs/languages) you might need to take a look for the `ISO-639-1` code which will use to translate your language.

Testing
-------

[](#testing)

To run test use this command `vendor/bin/phpunit`

License
-------

[](#license)

This package is a free software distributed under the terms of the MIT license.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~52 days

Total

6

Last Release

1563d ago

Major Versions

v0.0.4-beta → v1.0.02021-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b739843a13277460d1b33db36cacdd3fe8c5c5942f458ed26284aba28c16849?d=identicon)[CodeBugLab](/maintainers/CodeBugLab)

![](https://www.gravatar.com/avatar/c933185e0cb76b98ed1896622a2128f20e5dd92a305f8e5d7253b7f4e39aa84b?d=identicon)[moelkomy](/maintainers/moelkomy)

---

Top Contributors

[![moelkomy](https://avatars.githubusercontent.com/u/70802292?v=4)](https://github.com/moelkomy "moelkomy (18 commits)")[![MahmoudAlkomy](https://avatars.githubusercontent.com/u/30430101?v=4)](https://github.com/MahmoudAlkomy "MahmoudAlkomy (1 commits)")

---

Tags

phplaraveltranslationlaravel-packagegoogle-translatelaravel localization

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codebuglab-laravel-go-translate/health.svg)

```
[![Health](https://phpackages.com/badges/codebuglab-laravel-go-translate/health.svg)](https://phpackages.com/packages/codebuglab-laravel-go-translate)
```

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)[opgginc/codezero-laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[rakibhstu/number-to-bangla

A Laravel package for converting English numbers into Bangla digits, Bangla words, Bangla month names, and Bangla money format with an easy-to-use API.

8310.2k](/packages/rakibhstu-number-to-bangla)[awes-io/localization-helper

Package for convenient work with Laravel's localization features

3527.1k4](/packages/awes-io-localization-helper)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.7k](/packages/stevegrunwell-lost-in-translation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
