Skip to content

Instantly share code, notes, and snippets.

@tristanbes
Created July 27, 2012 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristanbes/3188496 to your computer and use it in GitHub Desktop.
Save tristanbes/3188496 to your computer and use it in GitHub Desktop.
# Add the bundle to your composer
"a2lix/translation-form-bundle" : "dev-master"
# Enable the Bundle in the AppKernel.php
new A2lix\TranslationFormBundle\A2lixTranslationFormBundle(),
# Configure the Bundle in the config.yml
a2lix_translation_form:
default_locale: en # [Optionnal] Default to 'en'
locales: [fr, es, de] # [Optionnal] Array of translations locales. Can be specified in the form.
default_required: false # [Optionnal] Default to false. In this case, translation fields are not mark as required with html5
# Template
twig:
form:
resources:
- 'A2lixTranslationFormBundle::form.html.twig'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment