private function translateWithNamedArguments(string $key, array $arguments = []): string
    {
        $translation = $this->translations[$key];
        foreach ($arguments as $name => $value) {
            $translation = str_replace('{{'.$name.'}}', $value, $translation);
        }

        return $translation;
    }
private function translateWithNamedArguments(string $key, array $arguments = []): string
    {
        $translation = $this->translations[$key];
        foreach ($arguments as $name => $value) {
            $translation = str_replace('{{'.$name.'}}', $value, $translation);
        }

        return $translation;
    }
@param string $key
@param array  $arguments

@return string