Skip to content

Template for `laravel-lang/publisher` expansion packs

License

Notifications You must be signed in to change notification settings

Laravel-Lang/translations-template

 
 

Repository files navigation

Extended Lang Translations Template

Extended Lang Translations Template

Stable Version Unstable Version Total Downloads License

Prepare Template

  1. Replace <your_namespace> with your package namespace.
  2. Replace your/namespace in the composer.json file to your namespace.
  3. Replace YourNamespace\Translations with your PSR package namespace.
  4. Replace Extended Lang Translations Template with your package title.
  5. Update tests.
  6. Remove this block.

Installation

To get the latest version of Extended Lang Translations Template library, simply require the project using Composer:

$ composer require <your_namespace> --dev

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "<your_namespace>": "^1.0"
    }
}

Using

To install files from this repository into your project, you need to install the andrey-helldar/laravel-lang-publisher version ^10.1 and above and specify the namespace of this project in its configuration.

For example:

// config/lang-publisher.php

<?php

return [
    // ...

    /*
     * Determines from which packages to synchronize localization files.
     */

    'plugins' => [
        \YourNamespace\Translations\Provider::class,
    ],
];