forked from mirrors/easyappointments
19 lines
339 B
PHP
19 lines
339 B
PHP
<?php
|
|
/**
|
|
* @var string $attributes
|
|
*/
|
|
?>
|
|
<script <?= $attributes ?>>
|
|
window.lang = (function () {
|
|
const lang = <?= json_encode($this->lang->language) ?>;
|
|
|
|
return (key) => {
|
|
if (!key) {
|
|
return lang;
|
|
}
|
|
|
|
return lang[key] || undefined;
|
|
};
|
|
})();
|
|
</script>
|
|
|