andrey-helldar/lang-translations

This package is abandoned and no longer maintained. The author suggests using the laravel-lang/http-statuses package instead.

Extended translations for Laravel Projects

v4.0.0 2021-04-15 19:39 UTC

README

Translation support for 78 languages.

lang translations

Stable Version Unstable Version Total Downloads License

Note

This package is abandoned. Use the laravel-lang/http-statuses instead.

Installation

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

$ composer require andrey-helldar/lang-translations --dev

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

{
    "require": {
        "andrey-helldar/lang-translations": "^4.0"
    }
}

Using

ATTENTION!

Just specifying the namespace is not enough - the translation manager DOES NOT INSTALL additional packages - it uses the installed ones, so don't forget to install it.

Starting from version 4.0 this project will not contain installation code, only localization files.

To install files from this repository into your project, you need to install the andrey-helldar/laravel-lang-publisher 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.
     *
     * A prerequisite is compliance with a single file placement format:
     *
     * source/
     * locales/
     *   af/
     *     af.json
     *     <filename>.php
     *   <locale>/
     *     <locale>.json
     *     <filename>.php
     */

    'packages' => [
        'andrey-helldar/lang-translations',
    ],
];

License

This package is licensed under the MIT License.

For Enterprise

Available as part of the Tidelift Subscription.

The maintainers of andrey-helldar/lang-translations and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.