Open codeh4nter opened 7 years ago
I also encountered similar problems.
import the language js
<script src="{{ asset('public/select2/js/i18n/language-wanted.js') }}"></script>
Hi, I am having the same problem. When I add to the base.twig I get a 404 error. Could you tell me if I should make any other option. Thanks
Hi, I had forgotten to do require ('select2/dist/js/i18n/es.js') in the app.js so that the encore can embed it. Greetings
There are no effects when i try to change language to 'ru'. What am i doing wrong?
$builder->add('company', Select2EntityType::class, array( 'label' => 'form.company', 'translation_domain' => 'FOSUserBundle', 'multiple' => false, 'remote_route' => 'get-all-companies', 'class' => '\AppBundle\Entity\Company', 'primary_key' => 'id', 'text_property' => 'name', 'minimum_input_length' => 3, 'page_limit' => 20, 'allow_clear' => true, 'delay' => 250, 'cache' => true, 'cache_timeout' => 60000, // if 'cache' is true 'language' => 'ru', 'placeholder' => 'form.select.company', ));