getContentLanguage(); parent::__construct( $options, $localBasePath, $remoteBasePath ); // Get the content language code, and all the fallbacks. The first that // has a ext.cite.style..css file present will be used. foreach ( [ $contLang->getCode(), ...$contLang->getFallbackLanguages() ] as $lang ) { $langStyleFile = "ext.cite.style.$lang.less"; if ( file_exists( $this->getLocalPath( $langStyleFile ) ) ) { $this->styles[] = $langStyleFile; break; } } } }