Pause translation when appending the outline/attachment/layer trees to the sidebar

Also, pause translation when collapsing/expanding subtrees.
This commit is contained in:
Jonas Jenwald 2023-10-25 17:10:58 +02:00
parent 0fc899338c
commit 6b265b3a15
6 changed files with 41 additions and 2 deletions

View file

@ -74,6 +74,14 @@ const NullL10n = {
async translate(element) {
return ConstL10n.instance.translate(element);
},
pause() {
ConstL10n.instance.pause();
},
resume() {
ConstL10n.instance.resume();
},
};
export { NullL10n };