To localize a plugin, you need to do the following:
Further information about the localization can be found at this page.
Use the plugin variations or subplugins to create an About window for your plugin or add extra plugin settings. Have a look at the plugin example with two variations here. In addition to two variations in the config, you also need to create an additional index_about.html file.
All ready-to-use plugins are available in the ONLYOFFICE App Directory.
More plugin samples are listed on GitHub. Feel free to fork them and use them as examples to create your own plugin.
Please make sure that your plugin archive doesn’t look the following way:
All the plugin files and subfolders must be at the archive root. To do it, unpack the plugin folder first and then archive its elements only.
Macros are attached to the specific documents and there is no possibility to make them global. However, you can write a plugin that will be loaded for all the users.