Skip to content

Commit

Permalink
Remove outdated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Feb 21, 2024
1 parent 15294c1 commit bd1231c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,11 @@ versions of the requested locale and if that fails by taking them from your
i18n.t("some.missing.scope");
```

Custom fallback rules can also be specified for a specific language. There are
three different ways of doing it so. In any case, the locale handler must be
registered using `i18n.locales.register()`.
Custom fallback rules can also be specified for a specific language. The locale
handler must be registered using `i18n.locales.register()`.

```js
// Using an array
i18n.locales.register("no", ["nb", "en"]);

// Using a string
i18n.locales.no.register("nb");

// Using a function.
i18n.locales.no.register((locale) => ["nb"]);
```

By default a missing translation will be displayed as
Expand Down

0 comments on commit bd1231c

Please sign in to comment.