private static function getScriptTranslationsFromString(
        $scriptContents,
        Translations $translations,
        array $options = [],
        $lineOffset = 0
    ) {
        $functions = new JsFunctionsScanner($scriptContents);
        $options['lineOffset'] = $lineOffset;
        $functions->saveGettextFunctions($translations, $options);
    }
private static function getScriptTranslationsFromString(
        $scriptContents,
        Translations $translations,
        array $options = [],
        $lineOffset = 0
    ) {
        $functions = new JsFunctionsScanner($scriptContents);
        $options['lineOffset'] = $lineOffset;
        $functions->saveGettextFunctions($translations, $options);
    }
private static function getScriptTranslationsFromString ( $ scriptContents , Translations $ translations , array $ options = [ ] , $ lineOffset = 0 ) { $ functions = new JsFunctionsScanner ( $ scriptContents ) ; $ options [ 'lineOffset' ] = $ lineOffset ; $ functions -> saveGettextFunctions ( $ translations , $ options ) ; }
Extract translations from script part

@param string $scriptContents Only script tag contents, not the whole template
@param Translations $translations
@param array $options
@param int $lineOffset Number of lines the script is offset in the vue template file
@throws \Exception
Extract translations from script part