Download the PHP package voicecode/laravel-nova-translation-manager without Composer
On this page you can find all versions of the php package voicecode/laravel-nova-translation-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voicecode/laravel-nova-translation-manager
More information about voicecode/laravel-nova-translation-manager
Files in voicecode/laravel-nova-translation-manager
Package laravel-nova-translation-manager
Short Description A translation management tool for Laravel Nova.
License MIT
Informations about the package laravel-nova-translation-manager
Laravel Nova Translation Manager
This tool is build in order to maintain translations via Laravel Nova while using the Laravel Translation Manager by Barry van den Heuvel. It also provides an integration with the Laravel Vue I18N Generator package from Martin Lindhe. The Laravel Vue i18n Generator package is optional and should be installed manually. Please see the Laravel Vue i18n Generator Docs for more information.
Installation
Then, publish the config file and make sure you set the correct value for using the Vue i18n package.
While this tool is build upon Laravel Translation Manager, this will be installed automatically when installing this tool. Make sure to publish the files provided by Translation Manager and run the migrations.
Now in NovaServiceProvider, make sure you register this tool in the tools method.
Supported locales
When starting off with an empty database, it's mandatory to create a first database record. You can do this by running the install command. This will generate a record based on your current app locale.
Translating this package
You can easily translate all texts of this package in the Laravel Nova JSON translation file. I'd be happy to add translations for your language. An example can be found in the translations folder.
Note for Vue i18n Generator users
The package ships with a config file where you can set the value of output messages. Make sure this is set to false, otherwise Laravel Nova will throw some errors while publishing translation files. (Thanks Martin Lindhe for merging this PR :-))
About Voicecode B.V.
Voicecode B.V.
Faradaystraat 11
2014 EN Haarlem
The Netherlands