public static function formatTranslationConfig($config, KernelInterface $kernel)
    {
        $config = static::formatConfig($config);
        $config['file'] = $kernel->locateResource($config['file']);

        if (isset($config['translations']) && \is_array($config['translations'])) {
            /** @var array $translation */
            foreach ($config['translations'] as &$translation) {
                $translation['file'] = $kernel->locateResource($translation['file']);
            }
        }

        return $config;
    }
public static function formatTranslationConfig($config, KernelInterface $kernel)
    {
        $config = static::formatConfig($config);
        $config['file'] = $kernel->locateResource($config['file']);

        if (isset($config['translations']) && \is_array($config['translations'])) {
            /** @var array $translation */
            foreach ($config['translations'] as &$translation) {
                $translation['file'] = $kernel->locateResource($translation['file']);
            }
        }

        return $config;
    }
public static function formatTranslationConfig ( $ config , KernelInterface $ kernel ) { $ config = static :: formatConfig ( $ config ) ; $ config [ 'file' ] = $ kernel -> locateResource ( $ config [ 'file' ] ) ; if ( isset ( $ config [ 'translations' ] ) && \ is_array ( $ config [ 'translations' ] ) ) { /** @var array $translation */ foreach ( $ config [ 'translations' ] as & $ translation ) { $ translation [ 'file' ] = $ kernel -> locateResource ( $ translation [ 'file' ] ) ; } } return $ config ; }
Format the string config to array config with "file" attribute and translations.

@param array|string    $config The config
@param KernelInterface $kernel The kernel

@return array
Format the string config to array config with file attribute and translations .