diff options
Diffstat (limited to 'docs/api/i18n.md')
-rw-r--r-- | docs/api/i18n.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/i18n.md b/docs/api/i18n.md index 026a2d5..b58f1e8 100644 --- a/docs/api/i18n.md +++ b/docs/api/i18n.md @@ -8,8 +8,8 @@ The first step is to register messages for a language: ```js module.exports = GitBook.createPlugin({ - init: (dispatch) => { - dispatch(GitBook.registerLocale('en-US', { + init: (dispatch, getState, { I18n }) => { + dispatch(I18n.registerLocale('en-US', { MY_PLUGIN_MESSAGE: 'Hello World' })); } |