netbull/translation-bundle

翻译包

安装次数: 2,398

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

v5.5.4 2022-07-14 07:03 UTC

README

Build Status

安装

使用 Symfony Flex 的应用程序

打开命令行控制台,进入您的项目目录并执行

$ composer require netbull/translation-bundle

不使用 Symfony Flex 的应用程序

步骤 1: 下载包

打开命令行控制台,进入您的项目目录并执行以下命令以下载此包的最新稳定版本

$ composer require netbull/translation-bundle

此命令要求您已全局安装 Composer,具体请参阅 Composer 文档的安装章节

步骤 2: 启用包

然后,通过将其添加到项目中的注册包列表中,在 app/AppKernel.php 文件中启用此包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new NetBull\TranslationBundle\NetBullTranslationBundle(),
        );

        // ...
    }

    // ...
}

步骤 3: 配置

###ToDo..