runroom-packages/translation-bundle

在Sonata Admin界面管理翻译

安装次数: 56,497

依赖项: 1

建议者: 0

安全性: 0

星标: 1

关注者: 7

分支: 0

类型:symfony-bundle

0.19.1 2024-09-06 13:59 UTC

README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

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

安装

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

composer require runroom-packages/translation-bundle

启用捆绑包

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

// config/bundles.php

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

更新doctrine模式

最后,执行doctrine模式更新以创建新表

console doctrine:schema:update --force

贡献

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

许可证

此捆绑包受MIT许可证的约束。