method analyzeJson documentation in bbn\Appui\I18n

function(string $file) { $res = []; $js = file_get_contents($file); if ($tmp = \Gettext\Translations::fromJsCodeString( $js, [ 'functions' => [ '_' => 'gettext', 'bbn._' => 'gettext' ], 'file' => $file ] ) ) { foreach ($tmp->getIterator() as $r => $tr){ $res[] = $tr->getOriginal(); } $this->parser->mergeWith($tmp); } return array_unique($res); }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.