diff options
Diffstat (limited to 'misc/__.php')
| -rw-r--r-- | misc/__.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/__.php b/misc/__.php index af6366a..e0c09ab 100644 --- a/misc/__.php +++ b/misc/__.php @@ -4,4 +4,8 @@ use Digitigrade\Text; function __(string $key): string { return (new Text($key))->__tostring(); +} + +function __f(string $key, mixed ...$args): string { + return sprintf(__($key), ...$args); }
\ No newline at end of file |
