Untranslated menu fix

Menu is not being translated from page load till first interaction with it. Should call translate after render_main().
This commit is contained in:
Volkov Maksim 2023-11-26 22:52:38 +03:00 committed by GitHub
parent 53d3ef7f83
commit 48bda1d41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,10 @@ class GUI_menu_class {
window.addEventListener('resize', (event) => { return this.on_resize_window(event); }, true);
document.body.classList.add('loaded');
if (config.LANG != 'en') {
this.Tools_translate.translate(config.LANG, this.menuContainer);
}
}
on(eventName, callback) {