Skip to content

Commit 5106d07

Browse files
author
ryanjohnson
committed
fix issue with docs
1 parent 9c141f4 commit 5106d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const App = props => {
3030
Dispatch [initialize](api/action-creators#initializelanguages-options) action creator and pass in the languages for your app. By default the first language in the array will be set as the active language.
3131

3232
```javascript
33-
import { setLanguages } from 'react-localize-redux';
33+
import { initialize } from 'react-localize-redux';
3434

3535
const languages = ['en', 'fr', 'es'];
3636
store.dispatch(initialize(languages));
@@ -40,7 +40,7 @@ To set a different default active language set the `defaultLanguage` option.
4040

4141
```javascript
4242
const languages = ['en', 'fr', 'es'];
43-
store.dispatch(setLanguages(languages, { defaultLanguage: 'fr' }));
43+
store.dispatch(initialize(languages, { defaultLanguage: 'fr' }));
4444
```
4545

4646

0 commit comments

Comments
 (0)