Skip to content

Commit

Permalink
Add usage instructions for plain vanilla JS browser integration (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaHoC authored Aug 8, 2024
1 parent a722b4e commit ac6c3d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ for plain browser:
<!-- an example can be found in example/jquery/index.html -->
```

```js
i18next.use(i18nextHttpBackend).init(i18nextOptions);
```

- As with all modules you can either pass the constructor function (class) to the i18next.use or a concrete instance.
- If you don't use a module loader it will be added to `window.i18nextHttpBackend`

Expand Down

0 comments on commit ac6c3d5

Please sign in to comment.