6cfe0ded85
Changes directory structure in src Renames parameters in config Removes built in User providers Adds translations to errors Removes docker and public files
12 lines
238 B
PHP
12 lines
238 B
PHP
<?php
|
|
|
|
namespace Kavalanche\Security;
|
|
|
|
function _t(string $key, string $lang = 'en') {
|
|
$translation = yaml_parse_file(__DIR__ . '/' . $lang . '.yaml');
|
|
|
|
if (!empty($translation[$key])) {
|
|
return $translation[$key];
|
|
}
|
|
}
|