PHPackages                             translators-hive/laravel-autotranslate - 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. translators-hive/laravel-autotranslate

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

translators-hive/laravel-autotranslate
======================================

Translators Hive Laravel Autotranslate Package

v1.0.1(2y ago)030GPL-3.0-onlyPHP

Since Jul 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Translators-Hive/laravel-autotranslate)[ Packagist](https://packagist.org/packages/translators-hive/laravel-autotranslate)[ RSS](/packages/translators-hive-laravel-autotranslate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Translators Hive Laravel Autotranslate
======================================

[](#translators-hive-laravel-autotranslate)

Translators Hive Laravel Autotranslate is a small tool for Laravel that gives you the ability to extract and auto translate untranslated string from your project files with one command.

Support
-------

[](#support)

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

[](#installation)

You can install the package via composer:

```
composer require translators-hive/laravel-autotranslate
```

This package makes use of [Laravels package auto-discovery mechanism](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518), which means if you don't install dev dependencies in production, it also won't be loaded.

You can publish the config file with:

```
php artisan vendor:publish --provider="TranslatorsHive\LaravelAutoTranslate\ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Configure translators-hive.com api credentials in your .env file

```
    TranslatorsHiveEmail='your email here'
    TranslatorsHivePassword='your password here'
```

To collect, extract and auto translate all the strings you need to run:

```
php artisan th:translate es,bg,de,fr
```

This command will create (if don't exist) `es.json`, `bg.json`, `de.json` and `fr.json` files inside the `resources/lang` directory. If you have short keys enabled and used in your files (e.g. `auth.failed`) the command will create folders `es`, `bg`, `de` and `fr` inside `resources/lang` directory and PHP files inside by the short key's prefix (e.g. `auth.failed`).

You can also run the artisan command without the country code arguments.

```
php artisan th:translate
```

In this case translation strings will be generated for the language specified in `app.locale` config.

> Note: Strings you have already translated will not be overwritten.

### Key Sorting

[](#key-sorting)

By default, the strings generated inside those JSON files will be sorted alphabetically by their keys. If you want to turn off this feature just set `sort => false` in the config file.

### Searching

[](#searching)

The way the strings are being collected and extracted is simple.

Searching is inside the directories defined in `search.dirs` config, using patterns defined in `search.patterns`, and finally is looked to collect strings which are the first argument of the functions defined in `search.functions`.

You can change any of these values inside the config file to suit you own needs.

### Translating

[](#translating)

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~551 days

Total

2

Last Release

841d ago

### Community

Maintainers

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

---

Top Contributors

[![Translators-Hive](https://avatars.githubusercontent.com/u/109546914?v=4)](https://github.com/Translators-Hive "Translators-Hive (8 commits)")

### Embed Badge

![Health badge](/badges/translators-hive-laravel-autotranslate/health.svg)

```
[![Health](https://phpackages.com/badges/translators-hive-laravel-autotranslate/health.svg)](https://phpackages.com/packages/translators-hive-laravel-autotranslate)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[mariuzzo/laravel-js-localization

Laravel Localization in JavaScript

6073.9M3](/packages/mariuzzo-laravel-js-localization)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)

PHPackages © 2026

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