protected function flushTranslationCachesByChangedFiles(array $changedFiles): void
    {
        foreach ($changedFiles as $pathAndFilename => $status) {
            if (preg_match('/\/Translations\/.+\.xlf/', $pathAndFilename) === 1) {
                $this->logger->info('The localization files have changed, thus flushing the I18n XML model cache.', LogEnvironment::fromMethodName(__METHOD__));
                $this->getCache('Flow_I18n_XmlModelCache')->flush();
                break;
            }
        }
    }
protected function flushTranslationCachesByChangedFiles(array $changedFiles): void
    {
        foreach ($changedFiles as $pathAndFilename => $status) {
            if (preg_match('/\/Translations\/.+\.xlf/', $pathAndFilename) === 1) {
                $this->logger->info('The localization files have changed, thus flushing the I18n XML model cache.', LogEnvironment::fromMethodName(__METHOD__));
                $this->getCache('Flow_I18n_XmlModelCache')->flush();
                break;
            }
        }
    }
protected function flushTranslationCachesByChangedFiles ( array $ changedFiles ) : void { foreach ( $ changedFiles as $ pathAndFilename => $ status ) { if ( preg_match ( '/\/Translations\/.+\.xlf/' , $ pathAndFilename ) === 1 ) { $ this -> logger -> info ( 'The localization files have changed, thus flushing the I18n XML model cache.' , LogEnvironment :: fromMethodName ( __METHOD__ ) ) ; $ this -> getCache ( 'Flow_I18n_XmlModelCache' ) -> flush ( ) ; break ; } } }
Flushes I18n caches if translation files have changed

@param array $changedFiles A list of full paths to changed files
@return void
@see flushSystemCachesByChangedFiles()
Flushes I18n caches if translation files have changed