Fix i18n: prevent duplicate text updates
This commit is contained in:
parent
c06f2ade6f
commit
1b74e5793c
@ -1415,8 +1415,11 @@ function updateTexts() {
|
||||
document.querySelectorAll('[data-i18n]').forEach(el => {
|
||||
const key = el.dataset.i18n;
|
||||
if (t[key]) {
|
||||
// Only update if text is different to avoid unnecessary DOM changes
|
||||
if (el.textContent !== t[key]) {
|
||||
el.textContent = t[key];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Update genre labels in select
|
||||
|
||||
Loading…
Reference in New Issue
Block a user