Files
ReZygisk/webroot/js/translate/action.js
T
ThePedroo 6ec8b5e7bd fix: JS code indentation/syntax
This commit fixes the syntax and indentation of the JavaScript code to meet the organization standard.
2024-11-12 00:09:10 -03:00

18 lines
1.1 KiB
JavaScript

export function translateActionPage(new_translations) {
/* INFO: action card */
document.getElementById('panel_actions_header').innerHTML = new_translations.page.action.header
/* INFO: daemon32 small card */
if (document.getElementById('daemon32_stop_button')) { /* INFO: Not all devices have 32-bit support */
document.getElementById('daemon32_stop_button').innerHTML = new_translations.page.action.daemonButton.stop
document.getElementById('daemon32_start_button').innerHTML = new_translations.page.action.daemonButton.start
document.getElementById('daemon32_exit_button').innerHTML = new_translations.page.action.daemonButton.exit
}
/* INFO: daemon64 small card */
if (document.getElementById('daemon64_stop_button')) { /* INFO: Not all devices have 64-bit support */
document.getElementById('daemon64_stop_button').innerHTML = new_translations.page.action.daemonButton.stop
document.getElementById('daemon64_start_button').innerHTML = new_translations.page.action.daemonButton.start
document.getElementById('daemon64_exit_button').innerHTML = new_translations.page.action.daemonButton.exit
}
}