eastern-color/json-trans-bundle

An anti-pattern tools to have Translations stored in single column.

1.0.3 2020-07-09 03:56 UTC

This package is auto-updated.

Last update: 2024-05-09 15:17:05 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

  1. composer require eastern-color/json-trans-bundle
  2. 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.