original_string: public function createJsTranslation($content, $langcode = null)
      {
          $extracted = $this->parseJs($content);
  
          if (empty($extracted)) {
              return false;
          }
  
          $file = $this->getContextJsFile($langcode);
          $translations = $this->loadTranslation($this->getCommonFile($langcode));
  
          foreach ($extracted as $string) {
              $this->addTranslation($string, $translations, $file);
          }
  
          return true;
      }
code: public function createJsTranslation($content, $langcode = null)
      {
          $extracted = $this->parseJs($content);
  
          if (empty($extracted)) {
              return false;
          }
  
          $file = $this->getContextJsFile($langcode);
          $translations = $this->loadTranslation($this->getCommonFile($langcode));
  
          foreach ($extracted as $string) {
              $this->addTranslation($string, $translations, $file);
          }
  
          return true;
      }
code_tokens: public function createJsTranslation ( $ content , $ langcode = null ) { $ extracted = $ this -> parseJs ( $ content ) ; if ( empty ( $ extracted ) ) { return false ; } $ file = $ this -> getContextJsFile ( $ langcode ) ; $ translations = $ this -> loadTranslation ( $ this -> getCommonFile ( $ langcode ) ) ; foreach ( $ extracted as $ string ) { $ this -> addTranslation ( $ string , $ translations , $ file ) ; } return true ; }
docstring: Creates context JS translation
  @param string $content
  @param string|null $langcode
  @return boolean
docstring_tokens: Creates context JS translation