Translation manager functionality for Lunar.

0.1.4 2024-02-15 09:18 UTC

This package is auto-updated.

Last update: 2024-04-15 09:52:27 UTC


README

Lunar

This addon enables Translation on your Lunar Hub.

Minimum Requirements

  • Lunar >= 0.6

Optional Requirements

  • Laravel Livewire (if using frontend components)
  • Alpinejs (if using frontend components)
  • Javascript framework

Installation

Require the composer package

composer require lunar-translation-manager/addon

Run artisan

php artisan lunar:addons:discover
php artisan migrate

Publish the config files

php artisan vendor:publish --tag="translation-config" -force

Publish the modify admin header file

php artisan vendor:publish --tag="translation-views" -force

Contributing

Contributions are welcome, if you are thinking of adding a feature, please submit an issue first. So we can determine whether it should be included.

Commands

Add all the missing translation keys for all languages or a single language

php artisan lunar:sync-missing-translation-keys {language?}

Synchronize all application translations

php artisan lunar:translations-synchronize