diff --git a/docs/modules/I18n.md b/docs/modules/I18n.md index 66d73e16e..a0d640241 100644 --- a/docs/modules/I18n.md +++ b/docs/modules/I18n.md @@ -199,19 +199,19 @@ export default (editor, opts = {}) => { editor.I18n.addMessages({ en, - ...i18n, + ...options.i18n, }); } ``` -The next step would be to compile your locale files into `/locale` directory to make easily accessible by your users. This folder could be ignored in your git repository be should be deployd to the npm registry +The next step would be to compile your locale files into `/locale` directory to make them easily accessible by your users. This folder could be ignored in your git repository be should be deployd to the npm registry ::: warning Remember that you can skip all these long steps and init your project with [grapesjs-cli](https://github.com/artf/grapesjs-cli). This will create all the necessary folders/files/commands for you (during `init` command this step is flagged `true` by default and we recommend to keep it even in case the i18n is not required in your project) ::: -At the end, your plugin users will be able to import other local files (if they exist) in this way +At the end, your plugin users will be able to import other locale files (if they exist) in this way ```js import grapesjs from 'grapesjs';