mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
add TranslateWithPluginId
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
/**
|
||||
* Trait StaticMake
|
||||
*/
|
||||
trait TranslateWithPluginId
|
||||
{
|
||||
public static function trans($name): string
|
||||
{
|
||||
return nexus_trans(static::ID . "::{$name}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user