import { Framework } from './base' ; import { LanguageId } from '~/utils' ; class PhpJoomlaFramework extends Framework { id = 'php-joomla' ; display = 'Joomla' ; detection = { composerJSON : [ 'joomla/application' , ] , } ; languageIds : LanguageId [ ] = [ 'php' , ] ; enabledParsers = [ 'php' ] ; usageMatchRegex = [ 'J?Text::(?:_|[\\w]+)\\([\'"]({key})[\'"]' , ] ; refactorTemplates ( keypath ) { return [ `JText::_('${ keypath }')` , keypath , ] ; } } export default PhpJoomlaFramework ;