jet-form-builder-LOCALE-jet-form-builder-editor-package.json
3 years ago
jet-form-builder-LOCALE-jfb-addons.json
3 years ago
jet-form-builder-LOCALE-jfb-settings.json
3 years ago
jet-form-builder-LOCALE.po
3 years ago
jet-form-builder.pot
3 years ago
readme.md
3 years ago
readme.md
37 lines
| 1 | 1. Create a localization file for the required language |
| 2 | using the program https://poedit.net/download or another. |
| 3 | File name example: jet-form-builder-ru_RU.po |
| 4 | 2. Open the file and make a translation |
| 5 | |
| 6 | Then you need to create a .json file in the format you need, this can be done through a third-party program (see method 1), or programmatically (see method 2) |
| 7 | |
| 8 | ### Method 1 (manual) |
| 9 | 1. Go to the website https://localise.biz/free/converter/po-to-json |
| 10 | and convert the file po to json. |
| 11 | The settings are shown in the screenshot |
| 12 | https://gyazo.com/1ac5f605f5d8844cae7bb9b4a545731d |
| 13 | 2. Download, open and modify the file as shown in the screenshot |
| 14 | https://gyazo.com/8bb7be428821530b33011768baaaaa43 |
| 15 | 3. Make copies of the modified file and set them names. |
| 16 | - jet-form-builder-LOCALE-jet-form-builder-editor-package.json |
| 17 | - jet-form-builder-LOCALE-jfb-settings.json |
| 18 | - jet-form-builder-LOCALE-jfb-addons.json |
| 19 | |
| 20 | Where `LOCALE` is your localization. Example: jet-form-builder-ru_RU-jfb-settings.json |
| 21 | |
| 22 | ### Method 2 (programmatic) |
| 23 | > **Only for advanced users.** |
| 24 | > To work you need |
| 25 | >[](https://nodejs.org/en/download/nodejs](https://nodejs.org/en/download/](https://nodejs.org/en/download/), |
| 26 | >[](https://docs.npmjs.com/npm](https://docs.npmjs.com/](https://docs.npmjs.com/) and |
| 27 | >[](https://gulpjs.com/docs/en/getting-started/quick-startgulp](https://gulpjs.com/docs/en/getting-started/quick-start](https://gulpjs.com/docs/en/getting-started/quick-start) |
| 28 | |
| 29 | 1. Open a terminal and go to the `jetformbuilder/assets` directory |
| 30 | 2. Run `npm install` |
| 31 | 3. After that you can run `gulp jfb-i18n` or `gulp jfb-i18n-watch` |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 |