Filament Translations - Manage your translation with DB and cache

Overview

Screenshot of Login

Filament Translations

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 settings Screenshot of edit

Installation

You can install the package via composer:

composer require 3x1io/filament-translations

Run migration:

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

In config/app.php (Laravel) or bootstrap/app.php (Lumen) you should replace Laravel's translation service provider

Illuminate\Translation\TranslationServiceProvider::class,

by the one included in this package:

Spatie\TranslationLoader\TranslationServiceProvider::class,

Add Language Middleware

go to app/Http/Kernel.php and add new middleware to $middlewareGroups

    'web' => [
        //...
        \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class,
    ],

go to config/filament.php and add middleware to middleware auth array

    'middleware' => [
        'auth' => [
            //...
            \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class
        ],
        //...
    ];

and now clear cache

php artisan optimize:clear

Changelog

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

Credits

License

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

Comments
  • Change language should be optional

    Change language should be optional

            Filament::registerNavigationItems([
                NavigationItem::make()
                    ->group('Translations')
                    ->icon('heroicon-o-translate')
                    ->label('Change Language')
                    ->sort(10)
                    ->url(url('admin/change')),
            ]);
    

    This should be optional and there should be a way to overwrite the route callback

    opened by vlados 2
  • Redirection issu

    Redirection issu

    Hi Thank you so much for this great work.

    After changing the default language the system redirect me to /admin/translation/ but /admin/ is not my default path.

    so I think you should fix that.

    opened by zaak86 1
  • Scan function should support translations without dot in it

    Scan function should support translations without dot in it

    Currently the scan function support only @lang("group.translation") but if I have @lang("This will be my default text") it will not find it

    opened by vlados 1
  • make created/updated columns toggleable

    make created/updated columns toggleable

    On narrow screens, the Edit / Delete buttons are hidden, and can only be show using the scrollbar above the pagination, which is annoying.

    trans1

    trans2

    This patch makes the date colums optional/toggleable, so it's easier to see the buttons.

    trans3

    opened by drifteaur 0
  • No output in the view of a changed tag in the db

    No output in the view of a changed tag in the db

    I do not understand. I have done everything as specified, table also has entries, but when i change as example the crud.users.create_title in the db, nothing happens in the view. Can someone help me please? i dont know if that is a failure or i miss something.

    opened by linjection 0
  • Move scan to background task

    Move scan to background task

    Firs off, thanks for the amazing work on this package! Could you make some changes to the "Scan" function so that it runs in the background maybe as a job or as a command? Better yet maybe a config entry for this? Currently it's impossible to run it on Vapor because the request simply times out.

    Again, thanks for the amazing work!

    opened by TKrisee 0
  • Change Language button is not translatable

    Change Language button is not translatable

    I have translated all fields on Translations page. You can see it on first image. It works good but button "Change Language" is not changing when I switch language. Even I have translate "menu" field in tranlation.php

    Pls help to fix it

    image

    image

    opened by Odilbukh 0
  • TypeError

    TypeError

    TypeError Filament\Navigation\NavigationItem::url(): Argument #1 ($url) must be of type Closure|string|null, Illuminate\Routing\UrlGenerator given, called in C:\Users\info\apps\demande\vendor\3x1io\filament-translations\src\FilamentTranslationsProvider.php on line 37

    opened by djoudi 1
Releases(v1.1.6)
Owner
Fady Mondy
Graphics, Marketing, Programming, All In One Place
Fady Mondy
Weblate translation provider for Symfony Translation.

Weblate Translation Provider This bundle provides a Weblate integration for Symfony Translation. Installation composer require m2mtech/weblate-transla

Martin Mandl 8 Sep 20, 2022
Manage Laravel translation files

Laravel 5 Translation Manager For Laravel 4, please use the 0.1 branch! This is a package to manage Laravel translation files. It does not replace the

Barry vd. Heuvel 1.5k Jan 4, 2023
A Gui To Manage Laravel Translation Files

Lingo A file based translation manager, which unlike other Lang managers don't need a database connection to handle the translation. Installation comp

Muah 97 Dec 5, 2022
Generates a vue-i18n compatible include file from your Laravel translations

This is fork of martinlindhe/laravel-vue-i18n-generator to give Laravel 8+ support for this excellent package.

Alefe Souza 1 Nov 11, 2021
BitView's translations.

BitView Translations Bonjour! You can now create translations for BitView. Please, use en-US.php as a template. Useful Information Date Format Info La

BitView 7 Jun 14, 2023
A GUI for managing JSON translation files in your laravel projects.

Laravel Language Manager Langman is a GUI for managing your JSON language files in a Laravel project. Installation Begin by installing the package thr

Mohamed Said 515 Nov 30, 2022
The Translation component provides tools to internationalize your application.

Translation Component The Translation component provides tools to internationalize your application. Getting Started $ composer require symfony/transl

Symfony 6.4k Jan 6, 2023
Provides support for message translation and localization for dates and numbers.

The I18n library provides a I18n service locator that can be used for setting the current locale, building translation bundles and translating messages. Additionally, it provides the Time and Number classes which can be used to output dates, currencies and any numbers in the right format for the specified locale.

CakePHP 26 Oct 22, 2022
Better translation management for Laravel

Better localization management for Laravel Introduction Keeping a project's translations properly updated is cumbersome. Usually translators do not ha

Waavi 354 Dec 18, 2022
[virion] Language management library for automatic translation

libtranslator :: library for automatic translation ✔️ Multilingual support for plugin messages ✔️ Translation language is set according to the player

PocketMine-MP projects of PresentKim 5 Jul 29, 2022
Laravel translation made __('simple').

Translation.io client for Laravel 5.5+/6/7/8 Add this package to localize your Laravel application. Use the official Laravel syntax (with PHP or JSON

Translation.io 109 Dec 29, 2022
🎌 Laravel Localization Helper :: Easily add translation variables from Blade templates.

LocalizationHelper Package for convenient work with Laravel's localization features and fast language files generation. Take a look at contributing.md

Awes.io 36 Jul 18, 2022
Internationalization tools, particularly message translation.

Aura.Intl The Aura.Intl package provides internationalization (I18N) tools, specifically package-oriented per-locale message translation. Installation

Aura for PHP 86 Dec 18, 2022
Official PHP library for the DeepL language translation API.

deepl-php Official PHP client library for the DeepL API. The DeepL API is a language translation API that allows other computer programs to send texts

DeepL 78 Dec 23, 2022
French-Traduction-Pterodactyl est la traduction française de pterodactyl French-Traduction-Pterodactyl is the French translation of pterodactyl

French-Traduction-Pterodactyl Star French-Traduction-Pterodactyl est la traduction française de pterodactyl French-Traduction-Pterodactyl is the Frenc

null 5 Sep 26, 2022
Translation (i18n) Manager as a virion

TL Translation (i18n) Manager as a virion Translation use hook-like $t = $tl->useTranslation($player->getLocale()); $player->sendMessage($t("message-k

RedMC Network 3 Oct 28, 2022
Composer package providing translation features for PHP apps

PHP translation This is a composer package providing translation support for PHP applications. It is similar to gettext, in usage, with these differen

Sérgio Carvalho 0 Aug 15, 2022
Automatically translate and review your content via Lokalise

This extension will work as a bridge between Pimcore and Lokalise for the purpose of automating the whole translation workflow. Thus eliminating most of the manual steps in the task along with availing quality translation-review service from Lokalise.

Pravin chaudhary 6 Jan 10, 2022
Language files manager in your artisan console.

Laravel Langman Langman is a language files manager in your artisan console, it helps you search, update, add, and remove translation lines with ease.

Mohamed Said 867 Nov 30, 2022