mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
14 lines
276 B
PHP
14 lines
276 B
PHP
<script>
|
|
window.lang = (function () {
|
|
const lang = <?= json_encode($this->lang->language) ?>;
|
|
|
|
return (key) => {
|
|
if (!key) {
|
|
return lang;
|
|
}
|
|
|
|
return lang[key] || undefined;
|
|
};
|
|
})();
|
|
</script>
|
|
|