File manager - Edit - /var/www/payraty/inventory_main/resources/js/trans.js
Back
module.exports = { methods: { /** * Translate the given key. */ __(key, replace) { let translation, translationNotFound = true try { translation = key.split('.').reduce((t, i) => t[i] || null, window._translations[window._locale].php) if (translation) { translationNotFound = false } } catch (e) { translation = key } if (translationNotFound) { translation = window._translations[window._locale]['json'][key] ? window._translations[window._locale]['json'][key] : key } _.forEach(replace, (value, key) => { translation = translation.replace(':' + key, value) }) return translation }, asset(path) { var base_path = window._asset || ''; return base_path + path; } }, }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 1.03 |
proxy
|
phpinfo
|
Settings