Skip to content

Commit 42d1a7b

Browse files
authored
Merge pull request i18next#246 from Haroenv/patch-1
chore(README): add typescript flag to the code block
2 parents f1091ac + 9768cb9 commit 42d1a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Full [sample/boilerplate](https://github.com/simpleblack/react-redux-universal-h
280280

281281
For Typescript users, if you are running into issues, such as `Uncaught TypeError: Cannot read property 'off' of undefined`, it's possible that you have not exported your own initialized i18next instance correctly. Try the following:
282282

283-
```
283+
```typescript
284284
import * as i18n from 'i18next'
285285
import * as XHR from 'i18next-xhr-backend'
286286
import * as LanguageDetector from 'i18next-browser-languagedetector'
@@ -293,4 +293,4 @@ const instance = i18n
293293
})
294294

295295
export default instance
296-
```
296+
```

0 commit comments

Comments
 (0)