Download the PHP package huuhadev/filament-translatable without Composer

On this page you can find all versions of the php package huuhadev/filament-translatable. 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 filament-translatable

Filament Translatable Plugin

Filament Translatable

Installation

Install the plugin with Composer:

After the package is installed, if you wish to use flag images, you can publish the assets using the following command:

Adding the plugin to a panel

To add a plugin to a panel.

Translate Action

This only supports TextInput, Textarea, and RichEditor fields.

Preparing your model class

You need to make your model translatable. You can read how to do this in Spatie's documentation.

Preparing your resource class

You must apply the Huuhadev\FilamentTranslatable\Concerns\ResourcesTranslatable trait to your resource class:

Making resource pages translatable

Translating Manager Records

Translating create page

Translating edit page

Translating view page

Setting the translatable locales for a particular resource

Customize the translatable locales for a particular resource by overriding the getTranslatableLocales() method in your resource class:

Translating relation managers

Now, you can add a new TableSelectLocale action to the header of the relation manager's table():

Override the $activeLocale property and add Livewire's Reactive attribute to it:

If you do this, you no longer need a SelectLocale action in the table().

Setting the translatable locales for a particular relation manager

Customize the translatable locales for a particular relation manager by overriding the getTranslatableLocales() method in your relation manager class:

After the trait is applied on the model you can do these things:

Translator

Default

By default, the package use Google Translator is the default, The plugin allows integration with other translation services. For integration, create a class that adheres to the Huuhadev\FilamentTranslatable\Contracts\Translator contract and update the filament-translatable.php config file accordingly.

AWS Translate Integration

Ensure you've set the necessary configurations as specified in the AWS Service Provider for Laravel documentation, and have the following environment variables:

Publishing

You can publish the views file with:

You can publish the config file with:

Screenshots

Application language switcher

Language switcher

Content language switcher

Content language switcher

Translator field

Translator

Google translate

Google Translator


All versions of filament-translatable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^3.2.1
spatie/laravel-package-tools Version ^1.16
spatie/laravel-translatable Version ^6.0
aws/aws-sdk-php-laravel Version ^3.9
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 huuhadev/filament-translatable contains the following files

Loading the files please wait ....