Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is part of the Carbon package. |
| 5 | * |
| 6 | * (c) Brian Nesbitt <brian@nesbot.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Carbon; |
| 13 | |
| 14 | if (!class_exists(LazyTranslator::class, false)) { |
| 15 | class LazyTranslator extends AbstractTranslator |
| 16 | { |
| 17 | /** |
| 18 | * Returns the translation. |
| 19 | * |
| 20 | * @param string|null $id |
| 21 | * @param array $parameters |
| 22 | * @param string|null $domain |
| 23 | * @param string|null $locale |
| 24 | * |
| 25 | * @return string |
| 26 | */ |
| 27 | public function trans($id, array $parameters = [], $domain = null, $locale = null) |
| 28 | { |
| 29 | return $this->translate($id, $parameters, $domain, $locale); |
| 30 | } |
| 31 | } |
| 32 | } |