atstudio-tech / translation-manager
GUI for scanning and managing your Laravel translations.
Installs: 1 670
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: ^8.0|^8.1
- illuminate/contracts: ^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^7.1
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.2
README
GUI for scanning and managing your Laravel translations.
Installation
Install this package by running the following commands in your terminal:
composer require atstudio-tech/translation-manager
php artisan vendor:publish --tag="tm-assets"
The first command will add the package to your composer's dependency list and automatically register its service provider.
The second one will publish package's frontend assets (CSS, JS and fonts) to the /public/vendor/translation-manager
folder.
You can now open the dashboard by visiting your-site.com/translation-manager
.
Config
To customize package's configuration, run this command in your terminal:
php artisan vendor:publish --tag="tm-config"
Available Options
[ 'locales' => [ 'en' => 'English', // ... ], 'folders' => [ 'app/Http/Controllers', 'resources/views', ], ];
Scanning
Click on the "Scan Files" button in the package's dashboard to scan folders for translation strings.
You may change the list of folders to scan by customizing the config at
/config/tm.php
.
This process will create or override language files in the /lang
directory.
e.g. It will create /lang/fr.json
and /lang/es.json
if your tm.locales
configuration is as follows:
[ 'en' => 'English', 'fr' => 'Français', 'es' => 'Español', ];
Locale specified in app.fallback_locale
is set as the default language thus its language file is not created.
Changelog
The CHANGELOG file will tell you about all changes to this package.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.