Download the PHP package kenepa/translation-manager without Composer
On this page you can find all versions of the php package kenepa/translation-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kenepa/translation-manager
More information about kenepa/translation-manager
Files in kenepa/translation-manager
Package translation-manager
Short Description Manage your application's translation strings in Filament.
License MIT
Homepage https://github.com/kenape/translation-manager
Informations about the package translation-manager
Translation Manager
Introducing our Filament translation management tool, which allows you to easily manage, preview, and sync translations with your language files all within your Filament admin dashboard. Say goodbye to relying on developers to edit language files and streamline your localization workflow today.
Installation
You can install the package via composer:
Install via Composer.
Plugin Version | Filament Version | PHP Version |
---|---|---|
<= 3.x | 2.x | > 8.0 |
4.x | 3.x | > 8.1 |
You can run the following command to publish the configuration file:
This package uses spatie/laravel-translation-loader
, publish their migration file using:
You have to update the migration file to the following:
Finally, run the migration.
Custom Theme Required
In order to compile the package views correctly, we need to create a custom Filament theme first, and then add the following path to its content:
Register the plugin with a panel
Authorization
By default, the translation manager cannot be used by anyone. You need to define the following gate in your AppServiceProvider
boot method:
If you want to learn more about gates, check out the official documentation.
Configuration
available_locales
Determines which locales your application supports. For example:
language_switcher
Enable or disable the language switcher feature. This allows users to switch their language - disable if you have your own implementation.
dont_register_navigation_on_panel_ids
Disable registering the translation manager navigation on certain panel IDs. The following will disable the translation navigation for the guest panel but still allow guest panel users to change the language.
Adding to cluster
Example of adding the translation manager to a cluster:
Usage
Once installed, the Translation Manager can be accessed via the Filament sidebar menu. Simply click on the "Translation Manager" link to access the translation management screen.
License
The MIT License (MIT). Please see License File for more information.
All versions of translation-manager with dependencies
filament/filament Version ^3.0
filament/notifications Version ^3.0.0
spatie/laravel-package-tools Version ^1.15.0
spatie/laravel-translation-loader Version ^2.7
stijnvanouplines/blade-country-flags Version ^1.0