Skip to content

Structuring your plugin

OsOmE1 edited this page Jan 5, 2021 · 3 revisions

Structuring your plugin

Every class you want to translate should have a separate file or class with the appropriately named attribute.
All your translator classes should be in a folder called translators.

Then your plugin should look something like this. This example shows what your plugin should include together with additional personal code.

public void PostProcessTypeModel(TypeModel model, PluginPostProcessTypeModelEventInfo info)
{
    Helpers.Initialize(model);
    Translator.StartTranslating(this);
    info.IsDataModified = true;
}

Clone this wiki locally