PHPackages                             fidum/laravel-translation-faker - 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. fidum/laravel-translation-faker

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

fidum/laravel-translation-faker
===============================

Generates pseudo language files from another locale to make it easy to see what still needs translating.

2.1.0(1y ago)43.3k[4 PRs](https://github.com/fidum/laravel-translation-faker/pulls)MITPHPPHP ^8.2CI passing

Since Oct 31Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/fidum/laravel-translation-faker)[ Packagist](https://packagist.org/packages/fidum/laravel-translation-faker)[ Docs](https://github.com/fidum/laravel-translation-faker)[ GitHub Sponsors](https://github.com/dmason30)[ RSS](/packages/fidum-laravel-translation-faker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (11)Used By (0)

Generates pseudo language files from another locale to make it easy to see what still needs translating.
========================================================================================================

[](#generates-pseudo-language-files-from-another-locale-to-make-it-easy-to-see-what-still-needs-translating)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cfdda5464a9cc06adaac14c173f753fd7b1aa37d50f8d24fd8b4485f7aba70b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666964756d2f6c61726176656c2d7472616e736c6174696f6e2d66616b65722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fidum/laravel-translation-faker)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4ae9ff795e8f9f668bf0513afd250f65595cbf4a23924a7641201646d210abe6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666964756d2f6c61726176656c2d7472616e736c6174696f6e2d66616b65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666f722d7468652d6261646765)](https://github.com/fidum/laravel-translation-faker/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/991544238e2f3185eb5a8a8ef4cea1218939180d7ae2d48fa231c87831ca5e54/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666964756d2f6c61726176656c2d7472616e736c6174696f6e2d66616b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666f722d7468652d6261646765)](https://github.com/fidum/laravel-translation-faker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Twitter Follow](https://camo.githubusercontent.com/3ecd70148f9f16e2e0d66fcde3428926f1df4d6797ea463473ccf60dcdf7758a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d25343064616e6d61736f6e6d702d3144413146323f6c6f676f3d74776974746572267374796c653d666f722d7468652d6261646765)](https://twitter.com/danmasonmp)

Having a fake language that reads in your native language can make it easier to keep tracking of what is missing translation as you make changes to your project.

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

[](#installation)

You can install the package via composer:

```
composer require fidum/laravel-translation-faker
```

You can publish the config file with:

```
php artisan vendor:publish --tag="translation-faker-config"
```

[Click here to see the contents of the config file](config/translation-faker.php).

You should read through the config, which serves as additional documentation and make changes as needed.

Usage
-----

[](#usage)

Just simply run the command with the first argument being the fake locale name you want to use.

```
$ php artisan translation:fake --help

Usage:
  translation:fake [options] [--]

Arguments:
  locale                         The output locale to store faked language files.

Options:
  -b, --baseLocale[=BASELOCALE]  The base locale to copy language files from.
  ...
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

If you are going to display this fake language on your system and are planning to also use the locale to control date / currency formats then I recommend that you use a real locale as your fake language.

For example, below our fake language will be generated using the danish `da` locale:

```
$ php artisan translation:fake da

   INFO  Translations successfully generated from 'en' to 'da'.
```

By default the locale the command will come from will be from the`translation-faker.default` value (which is defaulted to `en`).

If you want to use a different base locale when running the command then you can provide it using the `--baseLocale=de` or shorthand `--bde`.

```
$ php artisan translation:fake da --baseLocale=de

   INFO  Translations successfully generated from 'de' to 'da'.
```

**Note:** You must configure your replacer for the custom locale in `translation-faker.replacers` config.

You can get more verbose output using the `-v` option:

```
$ php artisan translation:fake da -v

Ensuring directory exists lang/ ......................................................................................................... 0ms DONE
Writing to lang/da.json ................................................................................................................. 0ms DONE
Ensuring directory exists lang/da/ ...................................................................................................... 0ms DONE
Writing to lang/da/example.php .......................................................................................................... 0ms DONE
Ensuring directory exists lang/da/folder/ ............................................................................................... 0ms DONE
Writing to lang/da/folder/example.php ................................................................................................... 0ms DONE

INFO  Translations successfully generated from 'en' to 'da'.
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Dan Mason](https://github.com/fidum)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 62.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 ~120 days

Total

5

Last Release

442d ago

Major Versions

1.0.2 → 2.0.02025-01-28

### Community

Maintainers

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

---

Top Contributors

[![dmason30](https://avatars.githubusercontent.com/u/20278756?v=4)](https://github.com/dmason30 "dmason30 (42 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")

---

Tags

laravellaravel-frameworklocalizationtranslationlaravelfidumlaravel-translation-faker

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fidum-laravel-translation-faker/health.svg)

```
[![Health](https://phpackages.com/badges/fidum-laravel-translation-faker/health.svg)](https://phpackages.com/packages/fidum-laravel-translation-faker)
```

###  Alternatives

[askdkc/breezejp

Laravel Starter Kit (Livewire+Breeze+Laravel UI+Jetstream)や標準のバリデーションメッセージを全て一瞬で日本語化し、言語切替機能も提供するパッケージです / This package provides all-in-one Japanese translation for Laravel StarterKit (Livewire StarterKit, Breeze, Laravel UI and Jetstream) packages and validation messages with language switching feature.

590244.8k1](/packages/askdkc-breezejp)[statikbe/laravel-filament-chained-translation-manager

A translation manager tool for Laravel Filament, that makes use of the Laravel Chained Translator.

92108.7k](/packages/statikbe-laravel-filament-chained-translation-manager)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[fidum/laravel-translation-linter

Commands to help you keep your laravel translations organized.

2476.3k](/packages/fidum-laravel-translation-linter)[andrewdwallo/transmatic

Automate and streamline real-time text translations in your Laravel applications

5511.6k](/packages/andrewdwallo-transmatic)

PHPackages © 2026

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