Download the PHP package fidum/laravel-translation-faker without Composer
On this page you can find all versions of the php package fidum/laravel-translation-faker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fidum/laravel-translation-faker
More information about fidum/laravel-translation-faker
Files in fidum/laravel-translation-faker
Package laravel-translation-faker
Short Description Generates pseudo language files from another locale to make it easy to see what still needs translating.
License MIT
Homepage https://github.com/fidum/laravel-translation-faker
Informations about the package laravel-translation-faker
Generates pseudo language files from another locale to make it easy to see what still needs translating.
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
You can install the package via composer:
You can publish the config file with:
Click here to see the contents of the config file.
You should read through the config, which serves as additional documentation and make changes as needed.
Usage
Just simply run the command with the first argument being the fake locale name you want to use.
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:
By default the locale the command will come from will be from thetranslation-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
.
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:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Dan Mason
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-translation-faker with dependencies
illuminate/contracts Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.14.0