add TranslateWithPluginId

This commit is contained in:
xiaomlove
2025-10-23 15:52:40 +07:00
parent 3e43c630fc
commit c26bd6f1aa

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Support;
/**
* Trait StaticMake
*/
trait TranslateWithPluginId
{
public static function trans($name): string
{
return nexus_trans(static::ID . "::{$name}");
}
}