Build a Plugin
Plugins are a powerful way to extend the functionality of inlang applications. This documentation provides you with the information you need to develop your own plugin.
Pre-requisites
- Node.js (version 18 or higher)
Step-by-step
1. Initialize a new plugin module
2. Implement Plugin Logic
Each of the following functions in the code represents a key aspect of your plugin's functionality:
loadMessages
: Load messagessaveMessages
: Save messagesaddCustomApi
: Define app-specific APIs
Implement the logic for each function according to your plugin's requirements. Example implementation of plugins can be found here.
3. Configure your plugin
In your lint rule's marketplace-manifest.json
make sure to define the following information:
Make sure these settings accurately represent your plugin's purpose and functionality.
4. Test your plugin
Before publishing your plugin to the marketplace, thoroughly test it to ensure it functions correctly and detects issues as intended.
5. Publish your plugin
To make your plugin available in the inlang.com marketplace, see Publish on marketplace.
Feel free to join our Discord if you have any questions or need assistance developing and publishing your plugin.