runroom-packages/doctrine-translatable-bundle

使用Symfony管理可翻译的doctrine实体

0.19.1 2024-09-06 13:58 UTC

This package is auto-updated.

Last update: 2024-09-10 10:09:54 UTC


README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

这个包允许直接在Sonata Backoffice上定义和使用翻译,作为Symfony中yaml翻译的替代。

安装

打开命令行,进入你的项目目录,然后执行以下命令以下载此包的最新稳定版本

composer require runroom-packages/doctrine-translatable-bundle

启用包

然后,通过将其添加到项目config/bundles.php文件中注册的包列表来启用该包

// config/bundles.php

return [
    // ...
    Runroom\DoctrineTranslatableBundle\RunroomDoctrineTranslatableBundle::class => ['all' => true],
];

贡献

此包的源代码包含在Runroom monorepo中。我们欢迎在runroom/runroom-packages上为此包做出贡献。

许可证

此包受MIT许可证的约束。