public static function fromConfig(array $config, string $language): Translator {
        $translations = (new Processor())->
            processConfiguration(new TranslatorConfiguration(), [$config]);

        return new static($translations, $language);
    }
public static function fromConfig(array $config, string $language): Translator {
        $translations = (new Processor())->
            processConfiguration(new TranslatorConfiguration(), [$config]);

        return new static($translations, $language);
    }
public static function fromConfig ( array $ config , string $ language ) : Translator { $ translations = ( new Processor ( ) ) -> processConfiguration ( new TranslatorConfiguration ( ) , [ $ config ] ) ; return new static ( $ translations , $ language ) ; }
Makes Translator instance from config

@param array  $config   Configuration array
@param string $language Language name

@return static Made instance
Makes Translator instance from config