Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

Extract translations from FormType in Symfony4

$
0
0

Is it possible to extract placeholders and titles translations from FormType class in Symfony4 using console command php bin/console translation:update --force uz ?

  {
      $builder
          ->add('title', null, [
              'attr' => ['placeholder' => 'job_title_placeholder'],
              'attr_translation_parameters' => [
                  'job_title_placeholder' => 'What needs to be done',
              ],
          ])
          ->add('description', TextareaType::class, [
              'attr' => ['placeholder' => 'job_description_placeholder'],
              'attr_translation_parameters' => [
                  'job_description_placeholder' => 'Describe project details',
              ],
          ])

After successful extracting keys 'job_title_placeholder' and 'description_title_placeholder' are not added to translation file


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>