<%
cur_lang = "ru";
lang = (text) => language[cur_lang][text];
ch_lang = (lang) => cur_lang = lang;
lang_json = () => JSON.stringify(language);
language = {
    "ru":{
        "main page": "проекты",
        "admin panel": "админ панель",
        "logout": "выйти",
        "new project": "создать новый проект",
        "Image preview": "превью картинки...",
        "hello admin": "привет админ",
        "height": "высота",
        "width": "ширина",
        "img max size": "макс. размер 2мб",
        "user registration": "регистрация пользователя",
        "create object": "создать объект",
        "admin": "админ",
        "register": "зарегистрировать",
        "download logs": "скачать логи",
        "create new object": "создание нового объекта",
        "logs": "логи",
        "password": "пароль",
        "login": "логин",
        "object name": "название объекта",
        "object description": "описание объекта",
        "black hole": "чёрная дыра",
        "project settings": "настройки проекта",
        "save to cloud": "сохранить в облако",
        "load from cloud": "загрузить из облака",
        "save to local": "сохранить в локальное хранилище",
        "load from local": "загрузить из локального хранилища",
        "cache_title": "если включено большые файлы будут сохраняться на локальное хранильще (улучшенная проиводительность)",
        "cache_on": "кеш включен",
        "cache_off": "кеш выключен",
        "to local": "в локальное хранилище",
        "local": "локальное хранилище",
        "to cloud": "в облако",
        "cloud": "облако",
        "saved": "сохранено",
        "saving": "сохраняется",
        "loading": "загружается",
        "loaded": "загружено",
        "from": "из",
        "in": "в",
        "edit current / list": "редактирование / просмотр",
        "users": "пользователи",
        "objects": "объекты",
        "back": "назад",
        "next": "далле",
        "edit": "радактирование",
        "name": "имя",
        "delete user": "удалить пользователя",
        "change privileges": "изменить привилегии",
        "change name": "изменить имя",
        "change login": "изменить логин",
        "change password": "изменить пароль",
        "privileges": "привилегии",
        "from": "от",
        "to": "до",
        "for": "для",
        "to the": "на",
        "total": "всего",
        "are you sure you want to change": "вы точно хотите именить",
        "admin privileges to": "превилегии администратора на",
        "admin privileges": "превилегии администратора",
        "are you sure you want to delete user": "вы точно хотите удалить пользователя"
    },
    "en":{
        "main page": "main page",
        "admin panel": "admin panel",
        "Image preview": "Image preview...",
        "hello admin": "hello admin",
        "height": "height",
        "width": "width",
        "img max size": "max size 2mb",
        "user registration": "user registration",
        "create object": "create object",
        "admin": "admin",
        "register": "register",
        "download logs": "download logs",
        "create new object": "create new object",
        "cache_title": "if its on browser will store large data in local storage (better performance)",
        "logout": "logout",
        "new project": "new project",
        "logs": "logs",
        "password": "password",
        "login": "login",
        "object name": "object name",
        "object description": "object description",
        "black hole": "black hole",
        "project settings": "project settings",
        "save to cloud": "save to cloud",
        "load from cloud": "load from cloud",
        "save to local": "save to local",
        "load from local": "load from local",
        "cache_on": "cache is on",
        "cache_off": "cache is off",
        "to local": "to local",
        "local": "local",
        "to cloud": "to cloud",
        "cloud": "cloud",
        "saved": "saved",
        "saving": "saving",
        "loading": "loading",
        "loaded": "loaded",
        "from": "from",
        "in": "in",
        "back": "back",
        "next": "next",
        "edit": "edit",
        "name": "name",
        "users": "users",
        "objects": "objects",
        "delete user": "delete user",
        "change privileges": "change privileges",
        "change name": "change name",
        "change login": "change login",
        "change password": "change password",
        "privileges": "privileges",
        "edit current / list": "edit current / list",
        "from": "from",
        "to": "to",
        "for": "for",
        "to the": "to the",
        "total": "total",
        "are you sure you want to change": "are you sure you want to change",
        "admin privileges to": "admin privileges to",
        "admin privileges": "admin privileges",
        "are you sure you want to delete user": "are you sure you want to delete user"
    }
}
%>