teknoo/east-translation

Extension to provide translations in East applications or website to manage easily translatable objects

1.0.0 2024-11-10 20:55 UTC

This package is auto-updated.

Last update: 2024-11-28 20:23:44 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License PHPStan

Package originally a part from Teknoo East Website, part forked then totaly reworked from the Gedmo Extension Translation, to allow developers to create translatable persisted object, in multiples languages, without manage them directly into each object.

Translation are stored into a dedicated objects. Translation are loaded in e minimum of database requests into objects. The translation manager is able to persist and update translations.

Example with Symfony

//These operations are not reauired with teknoo/east-translation-symfony
//config/packages/east_translation_di.yaml:
di_bridge:
    definitions:
        - '%kernel.project_dir%/vendor/teknoo/east-translation/infrastructures/doctrine/di.php'

//In doctrine config (east_translation_doctrine_mongodb.yaml)
doctrine_mongodb:
    document_managers:
        default:
            auto_mapping: true
            mappings:
                TeknooEastTranslationDoctrine:
                    type: 'xml'
                    dir: '%kernel.project_dir%/vendor/teknoo/east-translation/infrastructures/doctrine/config/doctrine'
                    is_bundle: false
                    prefix: 'Teknoo\East\Translation\Doctrine\Object'

Support this project

This project is free and will remain free. It is fully supported by the activities of the EIRL. If you like it and help me maintain it and evolve it, don't hesitate to support me on Patreon or Github.

Thanks :) Richard.

Credits

EIRL Richard Déloge - https://deloge.io - Lead developer. SASU Teknoo Software - https://teknoo.software

About Teknoo Software

Teknoo Software is a PHP software editor, founded by Richard Déloge, as part of EIRL Richard Déloge. Teknoo Software's goals : Provide to our partners and to the community a set of high quality services or software, sharing knowledge and skills.

License

East Translation is licensed under the MIT License - see the licenses folder for details.

Installation & Requirements

To install this library with composer, run this command :

composer require teknoo/east-translation

To start a project with Symfony :

symfony new your_project_name new
composer require teknoo/east-translation-symfony    

This library requires :

* PHP 8.2+
* A PHP autoloader (Composer is recommended)
* Teknoo/Recipe.
* Teknoo/East-Foundation.
* Teknoo/East-Common.

Contribute :)

You are welcome to contribute to this project. Fork it on Github