laravelway/jstranslate

Laravel package for translations on frontend

Fund package maintenance!
laravelway

2.1.2 2024-12-27 08:48 UTC

This package is auto-updated.

Last update: 2024-12-29 14:24:10 UTC


README

Installation

You can install the package via composer:

composer require laravelway/jstranslate

You can publish the config file with:

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

This is the contents of the published config file:

return [
    'files' => [
    ],

    'translate_script_path' => 'assets/translate.js',
    'translations_path' => 'assets/translations.{lang}.js',
];

Build Script

npm run build

Testing

composer test