Download the PHP package mominalzaraa/filament-localization without Composer

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

Filament Localization Package

Latest Version on Packagist Total Downloads GitHub Tests Code Style License PHP Version Sponsor Plumb score Plumb security score

The first and only automatic Filament localization package with intelligent resource scanning, structured translation files, and comprehensive testing. This package eliminates the repetitive task of manually adding translation keys to every field, column, action, and component in your Filament application.

This is the original and only package that provides automatic localization with translation features for Filament.

Requirements: PHP ^8.3 · Laravel ^12.0 | ^13.0 · Filament ^5.0 (Livewire ^4.0, Tailwind ^4.0)

Supported: PHP ^8.3–^8.5, Laravel ^12.0 | ^13.0, Filament ^5.0, Livewire ^4.0 · Deprecated: PHP <8.3, Filament v4 (use v1.x), Livewire v3.

🆕 Latest Updates: v2.1.x — Laravel 13 support; extended resource, relation manager, and discovery localization; Filament 5 & Livewire 4; PHP 8.3+.

Features

Supported Components

Form Components

Table Columns

Infolist Entries

Layout Components

Filament Pages

Other Components

Installation

Install the package via Composer (automatically installs all dependencies):

Publish the configuration file:

Configuration

The configuration file config/filament-localization.php provides customization options:

Commands

The package provides two commands for localization and translation:

1. filament:localize - Main Localization Command

Scans and localizes Filament resources with structured translation files.

Options:

2. filament:translate-with-deepl - DeepL Translation Command

Intelligently translates Filament resources using the DeepL API with smart detection of untranslated content.

Prerequisites:

  1. Get a DeepL API key from DeepL API
  2. Add to your .env file: DEEPL_API_KEY=your_deepl_api_key_here

Features:

Options:

Supported Languages: 40+ languages including English, Greek, French, German, Italian, Portuguese, Russian, Japanese, Chinese, Arabic, and more.

Quick Start

  1. Generate translation files:

  2. Translate with DeepL (optional):

  3. Install language switcher:

  4. Configure in your panel provider:

Translation File Structure

The package creates organized translation files based on your configuration:

Panel-Based Structure (Recommended):

Other Structures: Nested or flat structures available via configuration.

How It Works

  1. Scans all Filament resources, pages, and relation managers
  2. Identifies localizable components (fields, columns, actions, static properties, methods)
  3. Removes hardcoded labels and replaces with translation keys
  4. Creates organized translation files with default labels
  5. Updates resource and page files to use dynamic translation keys
  6. Intelligently translates using DeepL API with smart detection:
    • Missing keys (keys that don't exist in target language)
    • Untranslated content (identical to source language)
    • Skips acronyms and technical terms that should remain the same
  7. Creates git commit for easy reverting

Key Features

Smart Label Management

Automatically removes hardcoded labels and replaces them with translation keys:

DeepL Integration

Page Localization Support

Now supports Filament pages with static properties and methods:

Smart Translation Detection

The DeepL translation command intelligently detects what needs to be translated:

Normal Mode (Default):

Force Mode (--force):

Example Scenarios:

Language Switching

This package generates translation files. To enable language switching in your Filament panels, install a language switcher plugin:

Recommended: craft-forge/filament-language-switcher

Configure in your panel provider:

Other options: filament/spatie-laravel-translatable-plugin, awcodes/filament-language-switcher

Before and After

Visual Comparison

Before Localization

The Filament admin interface displays in English with hardcoded labels:

Users list page showing English labels

User edit form with English field labels

File structure showing only English translation files

After Localization

The same interface now supports multiple languages with proper translation keys:

Users list page with localized Greek labels

User edit form with localized Greek field labels

File structure showing organized translation files for multiple locales

Code Comparison

Before Localization:

After Localization:

Translation Files Created:

Safety Features

Testing

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

💖 Support & Funding

If this package has helped you, please consider supporting its development:

Support

License

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


All versions of filament-localization with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
deeplcom/deepl-php Version ^1.12
filament/filament Version ^5.0
laravel/framework Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 mominalzaraa/filament-localization contains the following files

Loading the files please wait ...