- Done fixing Container build caching and WIP on Picea's asset
This commit is contained in:
1 parent
4dcc7f407e
commit
4c0cddd617
10 files changed
+208
-79
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Lean;
|
||||
|
||||
use Picea\Extension\LanguageHandlerInterface;
|
||||
use Tell;
|
||||
|
||||
class LanguageHandler implements LanguageHandlerInterface {
|
||||
|
||||
public function __construct(
|
||||
public Tell\I18n $tell
|
||||
) {}
|
||||
|
||||
public function languageFromKey(string $key, array $variables = []) #: array|string
|
||||
{
|
||||
return $this->tell->fromKey($key, $variables) ?: "";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user