atstudio-tech / translation-manager
GUI for scanning and managing your Laravel translations.
Package info
github.com/atstudio-tech/translation-manager
Language:JavaScript
pkg:composer/atstudio-tech/translation-manager
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
This repository is no longer maintained.
If you need a GUI translation manager, you can try Lynguist.com. Otherwise, these open-source packages are available:
Laravel Lynguist: for scanning, merging and optionally uploading to Lynguist.com.
Lynguist.js: a collection of Laravel-style helper functions for translating (e.g.
__,transChoice, etc).Lynguist CLI: a Node CLI tool that brings the same features as Laravel Lynguist but to JavaScript frameworks (e.g. Next.js, Vue.js etc).
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.
