code: 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;
      }
docs: @param string $key
  @param array  $arguments
  
  @return string