Skip to content

Commit

Permalink
Fix docs numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachinman committed Dec 17, 2018
1 parent b7931a4 commit b704f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ class Footer extends React.Component {
export default withNamespaces('footer')(Footer)
```

### 3. Declaring namespace dependencies
### 4. Declaring namespace dependencies

By default, `next-i18next` will send _all your namespaces_ down to the client on each initial request. This can be an appropriate approach for smaller apps with less content, but a lot of apps will benefit from splitting namespaces based on route.

To do that, you need to return a `namespacesRequired` array via `getInitialProps` on your page-level component. You can see this approach in [example/pages/index.js](./example/pages/index.js).

### 4. Locale subpaths
### 5. Locale subpaths

One of the main features of this package, besides translation itself, are locale subpaths. It's easiest to explain by example:

Expand Down

0 comments on commit b704f68

Please sign in to comment.