$.extend(Alltrack.Core, (function() { const _translations = { "about": "about", "add": "add", "add {0}": "add {0}", "an email with password reset instructions has been sent to the email address of user \"{0}\", if that user exists and has an email address.": "an email with password reset instructions has been sent to the email address of user \"{0}\", if that user exists and has an email address.", "application version": "application version", "are you sure you want to delete {0} \"{1}\"?": "are you sure you want to delete {0} \"{1}\"?", "cancel": "cancel", "cardinal directions": "cardinal directions", "change": "change", "change password": "change password", "clients": "clients", "confirm new password": "confirm new password", "contain": "contain", "countries": "countries", "current password": "current password", "dashboard": "dashboard", "definitions": "definitions", "delete": "delete", "delete {0}": "delete {0}", "device availability": "device availability", "device performance": "device performance", "device settings history": "device settings history", "device status": "device status", "device statuses": "device statuses", "device types": "device types", "device validation": "device validation", "devices": "devices", "duplicate": "duplicate", "edit": "edit", "email alerts": "email alerts", "empty": "empty", "end with": "end with", "equal": "equal", "equals": "equals", "event data": "event data", "export csv": "export csv", "export excel": "export excel", "export json": "export json", "export pdf": "export pdf", "export xml": "export xml", "field": "field", "greater than": "greater than", "greater than or equal": "greater than or equal", "history": "history", "i forgot my password": "i forgot my password", "if you have any problems, use a more modern browser, like a recent version of chrome or firefox.": "if you have any problems, use a more modern browser, like a recent version of chrome or firefox.", "infrastructure": "infrastructure", "installation": "installation", "installation statuses": "installation statuses", "installations": "installations", "iot certificates": "iot certificates", "languages": "languages", "less than": "less than", "less than or equal": "less than or equal", "licence expires": "licence expires", "licence holder": "licence holder", "locations": "locations", "log in": "log in", "log out": "log out", "mandatory fields": "mandatory fields", "map devices": "map devices", "menu item": "menu item", "mqtt permissions": "mqtt permissions", "mqtt topics": "mqtt topics", "never seen": "never seen", "new password": "new password", "no filter": "no filter", "not contain": "not contain", "not empty": "not empty", "not equal": "not equal", "now": "now", "ok": "ok", "password": "password", "password reset": "password reset", "password strength": "password strength", "pda vignet detections": "pda vignet detections", "permissions": "permissions", "pir data": "pir data", "pir direction data": "pir direction data", "please enter your username and click \"send\" to receive an email with instructions on how to reset your password.": "please enter your username and click \"send\" to receive an email with instructions on how to reset your password.", "radar": "radar", "raw data": "raw data", "reports": "reports", "rfid data": "rfid data", "roles": "roles", "save": "save", "search": "search", "search date": "search date", "send": "send", "settings": "settings", "setup error: role landingspage missing": "setup error: role landingspage missing", "sound data": "sound data", "start with": "start with", "steigersensor remoticom data": "steigersensor remoticom data", "system": "system", "temporarily unavailable": "temporarily unavailable", "timezone": "timezone", "translations": "translations", "tree": "tree", "unavailable": "unavailable", "units": "units", "user": "user", "username": "username", "users": "users", "value": "value", "video boat counter": "video boat counter", "video sensor zaanbrug": "video sensor zaanbrug", "videosensors": "videosensors", "view": "view", "yes": "yes", "you are using internet explorer, which is not supported anymore.": "you are using internet explorer, which is not supported anymore.", "zombie devices": "zombie devices", "background color": { "devicestatuses": "background color" }, "foreground color": { "devicestatuses": "foreground color" }, "publish on mqtt": { "devicestatuses": "publish on mqtt" }, "sort": { "devicestatuses": "sort" }, "country": { "locations": "country" }, "latitude": { "locations": "latitude" }, "location parent": { "locations": "location parent" }, "longitude": { "locations": "longitude" }, "code": { "menuitems": "code" }, "icon": { "menuitems": "icon" }, "menu item parent": { "menuitems": "menu item parent" }, "menu items": { "menuitems": "menu items" }, "path": { "menuitems": "path" }, "position": { "menuitems": "position" }, "show add": { "menuitems": "show add" }, "show delete": { "menuitems": "show delete" }, "show edit": { "menuitems": "show edit" }, "show in menu": { "menuitems": "show in menu" }, "show view": { "menuitems": "show view" }, "context": { "translations": "context" }, "original": { "translations": "original" }, "translation": { "translations": "translation" }, "api key": { "users": "api key" }, "email": { "users": "email" }, "enabled": { "users": "enabled" }, "expiry": { "users": "expiry" }, "first name": { "users": "first name" }, "language": { "users": "language" }, "last activity": { "users": "last activity" }, "last modified": { "users": "last modified" }, "last modified by": { "users": "last modified by" }, "last name": { "users": "last name" }, "location": { "users": "location" }, "mqtt password": { "users": "mqtt password" }, "name": { "users": "name" }, "preposition": { "users": "preposition" }, "role": { "users": "role" }, "scan code": { "users": "scan code" }, "session expiration": { "users": "session expiration" }, "count": { "videoboatcounter": "count" }, "cpu temp": { "videoboatcounter": "cpu temp" }, "date time": { "videoboatcounter": "date time" }, "device": { "videoboatcounter": "device" }, "direction": { "videoboatcounter": "direction" }, "event": { "videoboatcounter": "event" }, "mac": { "videoboatcounter": "mac" }, "rack name": { "videoboatcounter": "rack name" } }; function translate(original, context) { if (!original) return original; let _original = original; //.toLowerCase(); let translation; if (context && _translations[_original.toLowerCase()] && _translations[_original.toLowerCase()][context.toLowerCase()]) { translation = _translations[_original.toLowerCase()][context.toLowerCase()]; } else if (_translations[_original.toLowerCase()] && _translations[_original.toLowerCase()]['_']) { translation = _translations[_original.toLowerCase()]['_']; } else { translation = _translations[_original.toLowerCase()]; if ($.type(translation) !== 'string') { for (const prop in translation) { translation = translation[prop]; break; } } } return translation || original; } return { translate : translate }; })()); // IIFE