10 lines
240 B
PHP
10 lines
240 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use App\Services\TranslationManager;
|
||
|
|
|
||
|
|
if (!function_exists('t')) {
|
||
|
|
function t(string $key, array $replace = [], ?string $locale = null) {
|
||
|
|
return app(TranslationManager::class)->translate($key, $replace, $locale);
|
||
|
|
}
|
||
|
|
}
|