/* ---------------------------------------------------------------------------- * Easy!Appointments - Online Appointment Scheduler * * @package EasyAppointments * @author A.Tselegidis * @copyright Copyright (c) Alex Tselegidis * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 * @link https://easyappointments.org * @since v1.5.0 * ---------------------------------------------------------------------------- */ /** * Lang utility. * * This module implements the functionality of translations. */ window.App.Utils.Lang = (function () { /** * Enable Language Selection * * Enables the language selection functionality. Must be called on every page has a language selection button. * This method requires the global variable "vars('available_variables')" to be initialized before the execution. * * @param {Object} $target Selected element button for the language selection. */ function enableLanguageSelection($target) { // Select Language const $languageList = $('