Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-7990

translation:extract fails for js files

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • 4.5.5, 4.6.1
    • None
    • None
    • Yes

    Description

      Steps

      1. Install Ibexa
      2. Create a JavaScript file in assets which includes the line Translator.trans(foo, {}, foo)
      3. run command php bin/console translation:extract --dir=assets --output-dir=translations

      Expected result
      Command runs completely

      Actual result
      Execution aborts with exception:

      Could not extract id, expected string literal but got MemberExpression (in /var/www/html/…).
       
      In JavaScriptFileVisitor.php line 163:
                                                                                                               
        Attempted to call an undefined method named "getValue" of class "Peast\Syntax\Node\MemberExpression".  
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: