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;
    }