Download the PHP package statikbe/laravel-nova-chained-translation-manager without Composer

On this page you can find all versions of the php package statikbe/laravel-nova-chained-translation-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-nova-chained-translation-manager

Laravel Nova Chained Translation Manager

Latest Version on Packagist Total Downloads

NOTE: If you are looking for nova 3 check out branch 3.0

The Laravel Nova Chained Translation Manager allows you to easily edit the translations of your current Laravel environment. This translation manager uses the Laravel Chained Translator, that enables you to override the default translations with translations for a specific environment, e.g. a content manager can independently edit and override the translation files on the production environment from the translations provided by the developers.

Typically at some point during the development phase, a content manager wants to translate or finetune the translation strings added by developers. This often results in merge and versioning issues, when developers and content managers are working on the translation files at the same time.

The Chained Translator package allows translations created by developers to exist separately from translations edited by the content manager in separate lang directories. The library merges the translations of both language directories, where the translations of the content manager (the custom translations) override those of the developer (the default translations). Check the documentation of the Laravel Chained Translator for more info.

Features

Currently, this tool does not provide features to add new translation keys, because our target users are translators and content managers and we want to avoid that they add unnecessary translation keys.

Installation

The package can be installed through Composer.

Nova 4 support starts from version v3.0.0. If you are still using Nova 3, please use the v2 version.

Next enable the tool in Nova. Go to app/Providers/NovaServiceProvider.php and add the TranslationManager to the tools.

Configuration

You can configure the custom language directory name and extend or finetune the service provider of the Laravel Chained Translator. Have a look at the configuration options of the Laravel Chained Translator library.

Supported locales

There are two ways to change the supported locales.

Option 1

Publish the config file with the command below and configure it with your supported locales and editor preferences.

E.g.

Option 2

If your application already has a config that declares your locales than you are able to set the supported locales in any service provider. Create a new one or use the app/Providers/AppServiceProvider.php and set the supported locales as an array in the boot function as follows:

Changing your Editor

Its possible also to change your editor, sometimes the translations values can get big and its good if you have a larger area to edit them or even add some bold/underline effects on the fly. You can use 3 supported values: input, textarea, trix. Their names are self-explanatory.

NOTE: We do not recommend Trix as an editor, because if you use variables in your translations within HTML, e.g. for the url of an anchor tag, Trix will remove it :-(. Please, keep in mind while using Trix you should also configure your allowed HTML tags.

Don't forget to clear the cache after changing these settings and refresh your page to see the results :-)

E.g.

Ignoring Groups

You may also ignore certain groups of translations to be shown in the Nova UI. Create an array with keys that you want to ignore:

E.g.

Merging translations

You can combine the custom translations of the current environment with the default translation files, by running the command provided by the Laravel Chained Translator library package.

Credits

We used Joe Dixon's translation libraries as a source of technical expertise and inspiration:

@nelumoraru and @FrittenKeeZ upgraded the library for Nova 4.

Thanks a lot for the great work!

License

The MIT License (MIT). Please see license file for more information.

Screenshots


All versions of laravel-nova-chained-translation-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2
illuminate/validation Version ^8.0|^9.0|^10.0|^11.0
laravel/nova Version ^4.0
statikbe/laravel-chained-translator Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package statikbe/laravel-nova-chained-translation-manager contains the following files

Loading the files please wait ....