https://github.com/downtoworld/filament-multilanguage
Laravel Filament Automatic Translations
https://github.com/downtoworld/filament-multilanguage
languages laravel-filament localization magic-the-gathering
Last synced: about 1 month ago
JSON representation
Laravel Filament Automatic Translations
- Host: GitHub
- URL: https://github.com/downtoworld/filament-multilanguage
- Owner: DownToWorld
- License: mit
- Created: 2024-04-28T11:46:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-08T01:53:06.000Z (11 months ago)
- Last Synced: 2025-02-13T20:49:19.590Z (3 months ago)
- Topics: languages, laravel-filament, localization, magic-the-gathering
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# WIP! Laravel Filament Automatic Translations
[](https://packagist.org/packages/downtoworld/filament-multilanguage)
[](https://github.com/downtoworld/filament-multilanguage/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/downtoworld/filament-multilanguage/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/downtoworld/filament-multilanguage)This package aims to auto-discover most of the places that should be translated from your Filament application.
Then it also lets you translate them directly from the UI while using a cache driver so there is no performance issues.
## Installation
You can install the package via composer:
```bash
composer require "downtoworld/filament-multilanguage:dev-main"
```You can add the plugin to your panel (normally AdminPanelProvider):
```bash
use DTW\FilamentMultilanguage\FilamentMultilanguagePlugin;$panel
...
->plugin(new FilamentMultilanguagePlugin)
...
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="filament-multilanguage-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="filament-multilanguage-config"
```This is the contents of the published config file:
```php
return [
'languages' => ['en', 'es', 'fr'], // CONFIGURE YOUR AVAILABLE LOCALES HERE
'authorized_emails' => [
//[email protected] INSERT YOUR EMAILS HERE
]
];
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Sergio Rodenas](https://github.com/sergiorodenas)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.