We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58dbf0 commit 5406b34Copy full SHA for 5406b34
fluent-dom/README.md
@@ -26,14 +26,14 @@ identifying localizable elements with `data-l10n-id` and translating them.
26
```javascript
27
import { DOMLocalization } from '@fluent/dom'
28
29
-const l10n = new DOMLocalization(MutationObserver, [
+const l10n = new DOMLocalization([
30
'/browser/main.ftl',
31
'/toolkit/menu.ftl'
32
], generateBundles);
33
34
l10n.connectRoot(document.documentElement);
35
36
-l10n.translateDocument();
+l10n.translateRoots();
37
38
const h1 = document.querySelector('h1');
39
0 commit comments