forci/locale-bundle

为Symfony3/4提供简单的地方管理

安装次数: 5,890

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 0

开放问题: 0

类型:symfony-bundle

v0.4.1 2020-02-17 23:46 UTC

This package is auto-updated.

Last update: 2024-09-18 09:56:45 UTC


README

这是一个具有多个辅助工具的地方管理的Symfony ~3.0|4.0 Bundle。

将此bundle添加到您的AppKernel.php中 new \Forci\Bundle\Locale\ForciLocaleBundle()

wucdbm_locale.locales_simple 是一个地方键的简单数组

wucdbm_locale.locales_enabled.routing 是类似 en|bg|sw|vn 的字符串

forci_locale:
    cookie_listener:
        enabled: true
    disabled_locale_redirect_listener:
        enabled: true # if a locale is not enabled, 
        # it will redirect to the same route with the same parameters, 
        # but using the preferred (if any) or the default locale
        use_preferred_locale: true # whether to try using preferred locale or not
    locales:
        en:
            name: English
            enabled: true
            currency: USD
        sw:
            name: Kiswahili
            enabled: true
            currency: TZS
        vn:
            name: Việt
            enabled: true
            currency: VND