Skip to content

Commit

Permalink
Update fluent-dom README.md to match current API (projectfluent#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstriemer authored Mar 3, 2022
1 parent a58dbf0 commit 5406b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluent-dom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ identifying localizable elements with `data-l10n-id` and translating them.
```javascript
import { DOMLocalization } from '@fluent/dom'

const l10n = new DOMLocalization(MutationObserver, [
const l10n = new DOMLocalization([
'/browser/main.ftl',
'/toolkit/menu.ftl'
], generateBundles);

l10n.connectRoot(document.documentElement);

l10n.translateDocument();
l10n.translateRoots();

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

Expand Down

0 comments on commit 5406b34

Please sign in to comment.