Skip to content

Commit 5406b34

Browse files
authored
Update fluent-dom README.md to match current API (#584)
1 parent a58dbf0 commit 5406b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent-dom/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ identifying localizable elements with `data-l10n-id` and translating them.
2626
```javascript
2727
import { DOMLocalization } from '@fluent/dom'
2828

29-
const l10n = new DOMLocalization(MutationObserver, [
29+
const l10n = new DOMLocalization([
3030
'/browser/main.ftl',
3131
'/toolkit/menu.ftl'
3232
], generateBundles);
3333

3434
l10n.connectRoot(document.documentElement);
3535

36-
l10n.translateDocument();
36+
l10n.translateRoots();
3737

3838
const h1 = document.querySelector('h1');
3939

0 commit comments

Comments
 (0)