- Done fixing Container build caching and WIP on Picea's asset

This commit is contained in:
mcndave committed 2023-10-17 20:10:42 -04:00
1 parent 4dcc7f407e
commit 4c0cddd617
10 files changed
+208 -79

No files matched your search

+18
View File
@@ -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) ?: "";
}
}