Translator.php 453 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is part of the Nette Framework (https://nette.org)
  4. * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
  5. */
  6. declare(strict_types=1);
  7. namespace Nette\Localization;
  8. /**
  9. * Translator adapter.
  10. */
  11. interface Translator
  12. {
  13. /**
  14. * Translates the given string.
  15. * @param mixed $message
  16. * @param mixed ...$parameters
  17. */
  18. function translate($message, ...$parameters): string;
  19. }
  20. interface_exists(ITranslator::class);