diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-03 00:59:26 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-03 00:59:26 +0200 |
commit | 3ae72bb47c146212d40fc74d857880fa0616ae57 (patch) | |
tree | 28986218bb512580272f9709fbdee01f6ede52dd /docs/api/i18n.md | |
parent | cd2d5e5101edb466b13ada19b09ea42ef726ad96 (diff) | |
download | gitbook-3ae72bb47c146212d40fc74d857880fa0616ae57.zip gitbook-3ae72bb47c146212d40fc74d857880fa0616ae57.tar.gz gitbook-3ae72bb47c146212d40fc74d857880fa0616ae57.tar.bz2 |
Sync search with querystring
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' })); } |