atstudio-tech/translation-manager

GUI for scanning and managing your Laravel translations.

Installs: 1 636

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

v1.0.3 2023-02-26 16:55 UTC

This package is auto-updated.

Last update: 2024-10-26 20:43:14 UTC


README

Latest Version on Packagist Total Downloads

GUI for scanning and managing your Laravel translations.

Preview

Installation

Install this package by running the following commands in your terminal:

composer require atstudio-tech/translation-manager
php artisan vendor:publish --tag="tm-assets"

The first command will add the package to your composer's dependency list and automatically register its service provider.

The second one will publish package's frontend assets (CSS, JS and fonts) to the /public/vendor/translation-manager folder.

You can now open the dashboard by visiting your-site.com/translation-manager.

Config

To customize package's configuration, run this command in your terminal:

php artisan vendor:publish --tag="tm-config"

Available Options

[
    'locales' => [
        'en' => 'English',
        // ...
    ],
    'folders' => [
        'app/Http/Controllers',
        'resources/views',
    ],
];

Scanning

Click on the "Scan Files" button in the package's dashboard to scan folders for translation strings.

You may change the list of folders to scan by customizing the config at /config/tm.php.

This process will create or override language files in the /lang directory.

e.g. It will create /lang/fr.json and /lang/es.json if your tm.locales configuration is as follows:

[
    'en' => 'English',
    'fr' => 'Français',
    'es' => 'Español',
];

Locale specified in app.fallback_locale is set as the default language thus its language file is not created.

Changelog

The CHANGELOG file will tell you about all changes to this package.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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