Files
security/translations/translations.php
T
Wojtek 6cfe0ded85 Introduces breaking changes
Changes directory structure in src
Renames parameters in config
Removes built in User providers
Adds translations to errors
Removes docker and public files
2022-02-27 01:57:53 +01:00

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];
}
}