eastern-color / json-trans-bundle
An anti-pattern tools to have Translations stored in single column.
Installs: 355
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/eastern-color/json-trans-bundle
Requires
- php: >=5.5.9
- dreamsdrive/zh-conv: ^1.0
This package is auto-updated.
Last update: 2025-10-09 18:31:56 UTC
README
This Symfony bundle provide entity trasnlation using single DB column. ** This is known as an anti-pattern to store translation in json format.
Installation
composer require eastern-color/json-trans-bundle
- Enable bundle in symfony's /app/AppKernel.php
new EasternColor\JsonTransBundle\EasternColorJsonTransBundle()
,
Prerequisites
TODO
- Add configurable emtpy-fallback to translate between zh-hant and zh-hans
- Add routing to translate between zh-hant and zh-hans
- Add support to Symfony serializer group
- Remove dependency to JMSSerializerBundle
- Extends this README
Command
Basic Usage (route option)
Advanced Usage
License
This bundle is under the MIT license.