export function getLang(lang) {
  let l = {
    russian: {
      "user_not_added_to_telephony": "Пользователь не добавлен в телефонию.",
      "array_number_is_empty": "Массив номеров пуст!",
      "call___": "Звонок...",
      "the_call_is_over": "Звонок окончен.",
      "call_duration": "Длительность звонка:",
      "incoming_call": "Входящий звонок",
      "progress___": "Прогресс...",
      "ended": "Закончился.",
      "outgoing_call": "Исходящий вызов",
      "registration_was_successful": "Регистрация прошла успешно, можете продожить настройску модуля.",
      "registration_failed": "Регистрация не прошла, проверьте введеные данные.",
      "login_pbx": "Логин АТС",
      "password_pbx": "Пароль АТС",
      "Server": "Сервер",
      "Port": "Порт",
      "Domain": "Домен",
      "secret_key": "Секретный ключ",
      "Save": "Сохранить",
      "settings_saved": "Настройки успешно сохранены.",
      "settings_not_saved": "Настройки не сохранены.",
      "Table": "Таблица",
      "Priority": "Приоритет",
      "Upper": "Высший",
      "Middle": "Средний",
      "Lower": "Низкий",
      "Field_with_telephone": "Поле с телефоном",
      "Field_Telephone_Name": "Поле имя абонента",
      "display_3_fields": "Вы можете отображать дополнительно до 3 полей",
      "Additional_field": "Дополнительное поле",
      "Fields_are_not_filled": "Не заполнены поля.",
      "User": "Пользователь",
      "SIP_number": "SIP номер",
      "SIP_password": "Пароль SIP",
      "Short_SIP_number": "Короткий SIP номер",
      "Landline_phone_number": "Номер стационарного телефона",
      "Not_chosen": "Не выбрано",
      "Contact_records_tables": "Таблицы контактов",
      "Add": "Добавить",
      "delete": "удалить",
      "edit": "редактировать",
      "Call_records_table": "Таблица записей звонков",
      "Open_table": "Открыть таблицу",
      "Users": "Пользователи",
      "Land_line": "Стационарные номера",
      "SIP_account": "SIP аккаунт",
      "Number_is_empty": "Номер пуст",
      "You_are_not_authorized": "Вы не авторизованы. Пустой номер SIP или пароль SIP",
      "Go_to_the_call_tab_and_answer": "Перейдите на вкладку звонков и ответьте.",
      "Answer_call": "Ответить на звонок",
      "End_the_call": "Завершить звонок",
      "Connection": "Подключение",
      "Telephony_module_connected": "Модуль телефонии подключен",
      "Connection_failure": "Сбой в подключении",
      "Current_call": "Текущий звонок",
      "Made_call": "Совершается звонок, в статусе",
      "No_made_call": "Звонок не совершается",
      "Last_call_made": "Последний совершенный звонок",
      "Call": "Вызов",
      "Answer": "Ответить",
      "Reject": "Отклонить",
      "Enter_the_number": "Введите номер",
      "dropCall": "Сбросить вызов",
      "Phone": "Телефон",
      "": "",
    },

    english: {
      "array_number_is_empty": "Array numbers is empty!",
      "user_not_added_to_telephony": "User not added to telephony.",
      "call___": "Call...",
      "the_call_is_over": "The call is over.",
      "call_duration": "Call duration:",
      "incoming_call": "Incoming call",
      "progress___": "Progress...",
      "ended": "Ended.",
      "outgoing_call": "Outgoing call",
      "registration_was_successful": "Registration was successful, you can continue configuring the module.",
      "registration_failed": "Registration failed, check the entered data.",
      "login_pbx": "Login PBX",
      "password_pbx": "Password PBX",
      "Server": "Server",
      "Port": "Port",
      "Domain": "Domain",
      "secret_key": "Secret key",
      "Save": "Save",
      "settings_saved": "The settings were saved successfully.",
      "settings_not_saved": "Settings are not saved.",
      "Table": "Table",
      "Priority": "Priority",
      "Upper": "Higher",
      "Middle": "Medium",
      "Lower": "Low",
      "Field_with_telephone": "Field with telephone",
      "Field_Telephone_Name": "Field Telephone Name",
      "display_3_fields": "You can display wide up to 3 fields",
      "Additional_field": "Additional field",
      "Fields_are_not_filled": "Fields are not filled.",
      "User": "User",
      "SIP_number": "SIP number",
      "SIP_password": "SIP password",
      "Short_SIP_number": "Short SIP number",
      "Landline_phone_number": "Landline phone number",
      "Not_chosen": "Not chosen",
      "Contact_records_tables": "Contact records tables",
      "Add": "Add",
      "delete": "delete",
      "edit": "edit",
      "Call_records_table": "Call records table",
      "Open_table": "Open table",
      "Users": "Users",
      "Land_line": "Land line",
      "SIP_account": "SIP account",
      "Number_is_empty": "Number is empty",
      "You_are_not_authorized": "You are not authorized. Empty SIP number or SIP password",
      "Go_to_the_call_tab_and_answer": "Go to the call tab and answer.",
      "Answer_call": "Answer call",
      "End_the_call": "End the call",
      "Connection": "Connection",
      "Telephony_module_connected": "Telephony module connected",
      "Connection_failure": "Connection failure",
      "Current_call": "Current call",
      "Made_call": "A call is made, in the status",
      "No_made_call": "The call is not made",
      "Last_call_made": "Last call made",
      "Call": "Call",
      "Answer": "Answer",
      "Reject": "Reject",
      "Enter_the_number": "Enter the number",
      "dropCall": "Drop call",
      "Phone": "Phone",
      "": "",
    },
  };

  return l[lang] || l.english;
}
