mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-25 17:26:18 -04:00
fix localization of html data attributes
This commit is contained in:
parent
3439e7f6d4
commit
55d85ea7fb
1 changed files with 1 additions and 6 deletions
|
@ -116,12 +116,7 @@ class Localization {
|
|||
element.innerText = Localization.getTranslation(key);
|
||||
}
|
||||
else {
|
||||
if (attr.startsWith("data-")) {
|
||||
let dataAttr = attr.substring(5);
|
||||
element.dataset.dataAttr = Localization.getTranslation(key, attr);
|
||||
} {
|
||||
element.setAttribute(attr, Localization.getTranslation(key, attr));
|
||||
}
|
||||
element.setAttribute(attr, Localization.getTranslation(key, attr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue