PHPackages                             thienson98/tftranslator - 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. thienson98/tftranslator

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

thienson98/tftranslator
=======================

A simple package help you automatically translate all text on your site to other languages.

1.0.1(7y ago)013MITPHPPHP &gt;=7.0

Since Oct 28Pushed 7y agoCompare

[ Source](https://github.com/thienson98/tftranslator)[ Packagist](https://packagist.org/packages/thienson98/tftranslator)[ RSS](/packages/thienson98-tftranslator/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

3F Translator
=============

[](#3f-translator)

A simple Laravel package help you automatically translate all text on your site to other languages. Writed by [Trieu Tai Niem](http://facebook.com/trieuniem.it).

Requirement
-----------

[](#requirement)

- PHP: &gt;= 7.0
- Laravel: &gt;= 5.5

Features
--------

[](#features)

- Automatically find translate string in parameter of translation functions ( *\_()* or *lang()* ) and generate into json translation files
- Automatically translates text found into other languages ​​using google translator
- Automatically updates and translates newly added text

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

[](#installation)

Open terminal and change directory to your project folder, now using composer command bellow to install package:

```
composer require thienson98/tftranslator

```

Finally, open laravel config file *config/app.php* and add the following line to end of *$provider* array:

```
ThienSon98\TFTranslator\TFTranslatorServiceProvider::class

```

That's all!

How to use?
-----------

[](#how-to-use)

If you want to automatically generate keys from translation functions (**\_\_** or **lang**) into json language files, use the following command:

```
php artisan 3F:translator

```

Of course, you can also use the above command to update the changes in your files

### Auto find and insert translation function

[](#auto-find-and-insert-translation-function)

You do not want to take the effort to insert text as parameter of translation function?

Do not worry! You just execute the command bellow:

```
php artisan 3F:translator --auto

```

Translation functions will be added to the view files and automatically generated json language files.

### Specify other languages

[](#specify-other-languages)

The default languages of the translator are *Vietnamese (vi)* and *English (en)*. You can translate into other languages with the `--lang=` option.

For example, use the following command to translate to Japanese:

```
php artisan 3F:translator --lang=ja

```

Or translate to Vietnamese, Japanese and Chinese:

```
php artisan 3F:translator --lang=ja,vi,zh

```

It supports all languages and works with all of the options.

### Remove unused keys

[](#remove-unused-keys)

To clean unused translation keys, you can use the following command:

```
php artisan 3F:translator --clear

```

It will remove all the keys that are not using in views.

### Just write the translation keys

[](#just-write-the-translation-keys)

Of course, if you do not want to use Google translator to translate your texts. You can use the option below:

```
php artisan 3F:translator --justwrite

```

It will ignore auto-translations and only give you translation keys into json files.

This option works with all of the options above.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

Unknown

Total

1

Last Release

2846d ago

### Community

Maintainers

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

---

Top Contributors

[![mmo-auto-deployer](https://avatars.githubusercontent.com/u/40227857?v=4)](https://github.com/mmo-auto-deployer "mmo-auto-deployer (9 commits)")[![zhaomein](https://avatars.githubusercontent.com/u/44677489?v=4)](https://github.com/zhaomein "zhaomein (1 commits)")

### Embed Badge

![Health badge](/badges/thienson98-tftranslator/health.svg)

```
[![Health](https://phpackages.com/badges/thienson98-tftranslator/health.svg)](https://phpackages.com/packages/thienson98-tftranslator)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[renatomarinho/laravel-multi-language

Laravel Multi Language

235.1k](/packages/renatomarinho-laravel-multi-language)

PHPackages © 2026

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