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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package translation-manager

Translation Manager

filament-translation-manager-art

Latest Version on Packagist Total Downloads

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.

filament-translation-manager-art

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
5.x 4.x > 8.2

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. In the theme.css file of the theme, add the following line:

Register the plugin with a panel

Configuration

From version 5.x onwards, the main configuration is done through the plugin class. The traditional config file is still supported for compatibility, but all new configurations should be done through the plugin.

Plugin Configuration

Configure the plugin using fluent method chaining:

Available Configuration Methods

Config File

You can run the following command to publish the configuration file:

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.

Legacy Configuration Examples

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.
Language Switcher

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.

Upgrade Guide

Upgrading from 4.x to 5.x

Version 5.x introduces Filament v4 support and a new plugin-based configuration system. Follow these steps to upgrade:

Prerequisites

Step 1: Theme Configuration (Required)

Breaking Change: Filament v4 requires a different approach for including package assets.

Remove from tailwind.config.js (if present):

Add to your custom theme CSS file:

  1. Create a custom theme if you don't have one (Filament v4 theme docs)
  2. Add this line to your theme's CSS file:

Step 2: Migrate Configuration (Recommended)

Migrate your config file settings to the plugin configuration:

License

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


All versions of translation-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0
filament/notifications Version ^4.0
spatie/laravel-package-tools Version ^1.92
spatie/laravel-translation-loader Version ^2.8
stijnvanouplines/blade-country-flags Version ^1.0.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kenepa/translation-manager contains the following files

Loading the files please wait ....