Skip to content
Snippets Groups Projects
Commit 003be35e authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

qr-code-scanner: detect language changes

parent 8598d6ab
No related branches found
No related tags found
No related merge requests found
Pipeline #13645 passed
...@@ -144,6 +144,18 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) { ...@@ -144,6 +144,18 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
} }
} }
update(changedProperties) {
changedProperties.forEach((oldValue, propName) => {
switch (propName) {
case "lang":
i18n.changeLanguage(this.lang);
break;
}
});
super.update(changedProperties);
}
/** /**
* Init and start the video and QR code scan * Init and start the video and QR code scan
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment