Skip to content

stfalcon-studio/TranslationFormBundle

Repository files navigation

Updated for symfony 4.

  • Use GedmoTranslationsType::class

Example for Sonata Admin.

    ->add('translations', GedmoTranslationsType::class, [
        'translatable_class' => $this->getClass(),
        'fields' => [
            'title' => [
                'label' => 'Назва',
                'locale_options' => ['uk' => ['required' => true]],
            ],
            'text' => [
                'label' => 'Текст',
                'locale_options' => ['uk' => ['required' => true]],
            ],
        ],
    ])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published