2026-03-30 14:54:57 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This file is part of the Nette Framework (https://nette.org)
|
|
|
|
|
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Nette\Localization;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-18 20:32:18 +07:00
|
|
|
* Translation provider.
|
2026-03-30 14:54:57 +07:00
|
|
|
*/
|
|
|
|
|
interface Translator
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Translates the given string.
|
|
|
|
|
*/
|
|
|
|
|
function translate(string|\Stringable $message, mixed ...$parameters): string|\Stringable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface_exists(ITranslator::class);
|