2022-01-18 12:43:40 +03:00
|
|
|
<script>
|
2022-01-18 10:22:25 +03:00
|
|
|
window.lang = (function () {
|
|
|
|
const lang = <?= json_encode($this->lang->language) ?>;
|
|
|
|
|
|
|
|
return (key) => {
|
|
|
|
if (!key) {
|
|
|
|
return lang;
|
|
|
|
}
|
|
|
|
|
|
|
|
return lang[key] || undefined;
|
|
|
|
};
|
|
|
|
})();
|
2021-11-09 10:40:20 +03:00
|
|
|
</script>
|
|
|
|
|