mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
add TranslateWithPluginId
This commit is contained in:
14
app/Support/TranslateWithPluginId.php
Normal file
14
app/Support/TranslateWithPluginId.php
Normal 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}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user