Skip to content

mrvnklm/filament-translations

 
 

Repository files navigation

Screenshot of Login

Filament translations

Latest Stable Version PHP Version Require License Downloads

Manage your translation with DB and cache, you can scan your languages tags like trans(), __(), and get the string inside and translate them use UI.

this plugin is build in spatie/laravel-translation-loader

Screenshots

Screenshot of list Screenshot of edit Screenshot of settings

Installation

composer require tomatophp/filament-translations

Publish Resource

you can publish the resource to your project

php artisan vendor:publish --tag="filament-translations-migrations"

if you need to publish config

php artisan vendor:publish --tag="filament-translations-config"

Run migration:

php artisan migrate

and now clear cache

php artisan optimize:clear

finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php

$panel->plugin(\TomatoPHP\FilamentTranslations\FilamentTranslationsPlugin::make())

Scan Using Command Line

you can scan your project to get all the languages tags and save them to the database

php artisan filament-translations:import

Change Scan to work on Queue

on your config file just change the use_queue_on_scan to true

'use_queue_on_scan' => true,

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-translations-config"

you can publish views file by use this command

php artisan vendor:publish --tag="filament-translations-views"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-translations-lang"

you can publish migrations file by use this command

php artisan vendor:publish --tag="filament-translations-migrations"

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see SECURITY for more information about security.

Credits

License

The MIT License (MIT). Please see License File for more information.

Packages

No packages published

Languages

  • PHP 94.0%
  • Blade 6.0%