mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 11:42:13 +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
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user