Refactor helper drift in lib: centralize theme/translation and remove app() hotspots
This commit is contained in:
11
lib/Service/I18n/TranslatesServiceText.php
Normal file
11
lib/Service/I18n/TranslatesServiceText.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\I18n;
|
||||
|
||||
trait TranslatesServiceText
|
||||
{
|
||||
private function translate(string $text, mixed ...$args): string
|
||||
{
|
||||
return ServiceTranslator::translate($text, ...$args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user