Translation manager functionality for Lunar.
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^8.0
- livewire/livewire: ^2.0
- lunarphp/lunar: ^0.6|^0.7|^0.8|^1.0
- spatie/laravel-translation-loader: ^2.7
- stijnvanouplines/blade-country-flags: ^1.0
Requires (Dev)
- mockery/mockery: ^1.4.4
- orchestra/testbench: ^6.0|^7.0
- phpunit/phpunit: ^9.5
README
This addon enables Translation on your Lunar Hub.
Minimum Requirements
- Lunar >=
0.6
Optional Requirements
- Laravel Livewire (if using frontend components)
- Alpinejs (if using frontend components)
- Javascript framework
Installation
Require the composer package
composer require lunar-translation-manager/addon
Run artisan
php artisan lunar:addons:discover
php artisan migrate
Publish the config files
php artisan vendor:publish --tag="translation-config" -force
Publish the modify admin header file
php artisan vendor:publish --tag="translation-views" -force
Contributing
Contributions are welcome, if you are thinking of adding a feature, please submit an issue first. So we can determine whether it should be included.
Commands
Add all the missing translation keys for all languages or a single language
php artisan lunar:sync-missing-translation-keys {language?}
Synchronize all application translations
php artisan lunar:translations-synchronize