mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 12:01:58 +00:00
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:
parent
53d3ef7f83
commit
48bda1d41f
@ -46,8 +46,12 @@ class GUI_menu_class {
|
||||
document.body.addEventListener('mousedown', (event) => { return this.on_mouse_down_body(event); }, true);
|
||||
document.body.addEventListener('touchstart', (event) => { return this.on_mouse_down_body(event); }, true);
|
||||
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user